/* =========================
   AZIEL HOME V2.5
   Liquid Glass Upgrade
========================= */

:root {
  --home-max: 1280px;
  --banner-rgb: 139, 92, 246;

  --home-glass: rgba(255, 255, 255, .64);
  --home-glass-strong: rgba(255, 255, 255, .78);
  --home-glass-border: rgba(255, 255, 255, .72);
  --home-glass-shadow:
    0 22px 60px rgba(31, 41, 55, .12),
    inset 0 1px 0 rgba(255, 255, 255, .62);
}

body.theme-dark,
body.dark {
  --home-glass: rgba(18, 22, 38, .76);
  --home-glass-strong: rgba(18, 22, 38, .88);
  --home-glass-border: rgba(255, 255, 255, .10);
  --home-glass-shadow:
    0 24px 70px rgba(0, 0, 0, .36),
    inset 0 1px 0 rgba(255, 255, 255, .10);
}

html {
  scroll-behavior: smooth;
}

/* =========================
   HOME ATMOSPHERE
========================= */

body.theme-light {
  background:
    radial-gradient(circle at 50% 120px, rgba(var(--banner-rgb), .28), transparent 34%),
    radial-gradient(circle at 85% 260px, rgba(168, 85, 247, .14), transparent 30%),
    linear-gradient(180deg,
      rgba(var(--banner-rgb), .18) 0px,
      var(--bg-soft, #f7f5ff) 460px,
      var(--bg, #ffffff) 920px,
      var(--bg, #ffffff) 100%) !important;
}

body.theme-dark,
body.dark {
  background:
    radial-gradient(circle at 50% 120px, rgba(var(--banner-rgb), .34), transparent 32%),
    radial-gradient(circle at 85% 260px, rgba(168, 85, 247, .22), transparent 28%),
    linear-gradient(180deg,
      rgba(var(--banner-rgb), .38) 0px,
      rgba(18, 14, 42, .92) 420px,
      var(--bg, #070716) 900px,
      var(--bg, #070716) 100%) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(ellipse at 50% 120px,
      rgba(var(--banner-rgb), .62) 0%,
      rgba(var(--banner-rgb), .34) 24%,
      rgba(var(--banner-rgb), .14) 46%,
      transparent 76%);

  filter: blur(58px);
  opacity: .9;
}

body.theme-light::before {
  opacity: .48;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    linear-gradient(180deg,
      rgba(var(--banner-rgb), .34) 0px,
      rgba(var(--banner-rgb), .14) 260px,
      rgba(var(--banner-rgb), .04) 520px,
      transparent 900px);
}

.az-home,
.az-header,
main {
  position: relative;
  z-index: 1;
}

/* =========================
   PAGE WRAPPER
========================= */

.az-home {
  width: min(var(--home-max), calc(100% - 32px));
  margin: 96px auto 0;
}

/* =========================
   BANNER
========================= */

.az-banner-zone {
  position: relative;
  width: 100%;
  height: 350px;
  margin: 16px auto 0;
  overflow: hidden;
}

.az-banner-track {
  position: relative;
  width: 100%;
  height: 310px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.az-banner-track:active {
  cursor: grabbing;
}

.az-banner-card {
  position: absolute;
  top: 0;
  left: 50%;

  width: min(860px, 58vw);
  height: 300px;

  border-radius: 28px;
  overflow: hidden;

  text-decoration: none;
  transform: translateX(-50%);

  background: var(--home-glass);
  border: 1px solid var(--home-glass-border);
  box-shadow: var(--home-glass-shadow);

  will-change: transform, opacity, filter;
}

.az-banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

.az-banner-dots {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 20;

  display: flex;
  gap: 8px;

  transform: translateX(-50%);
}

.az-banner-dots button {
  width: 38px;
  height: 5px;

  border: 0;
  border-radius: 999px;

  background: rgba(255, 255, 255, .48);

  cursor: pointer;
  transition: .25s ease;
}

.az-banner-dots button.active {
  width: 100px;
  background: var(--primary);
}

/* =========================
   BUTTONS
========================= */

.az-primary-btn,
.az-secondary-btn {
  height: 48px;
  padding: 0 24px;

  border-radius: 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.az-primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  box-shadow: 0 16px 32px rgba(139, 92, 246, .36);
}

.az-secondary-btn {
  color: var(--text);
  background: var(--home-glass);
  border: 1px solid var(--home-glass-border);
}

/* =========================
   HERO ART
========================= */

.az-hero-art {
  position: absolute;
  right: 0;
  bottom: 0;

  width: 56%;
  height: 100%;

  display: flex;
  justify-content: flex-end;
  align-items: flex-end;

  pointer-events: none;
}

.az-hero-art img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: right center;

  opacity: .94;
}

/* =========================
   TRUST
========================= */

.az-trust-row {
  margin: 22px auto 0;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.trust-card {
  height: 82px;

  display: flex;
  align-items: center;
  gap: 14px;

  padding: 15px 18px;

  border-radius: 24px;
  background: var(--home-glass);
  border: 1px solid var(--home-glass-border);
  box-shadow: var(--home-glass-shadow);

  backdrop-filter: blur(24px) saturate(175%);
  -webkit-backdrop-filter: blur(24px) saturate(175%);

  transition: .25s ease;
}

.trust-card:hover {
  transform: translateY(-3px);
}

.trust-card i {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 17px;

  color: var(--primary);
  background: rgba(139, 92, 246, .16);

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}

.trust-card strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.trust-card span {
  color: var(--text-muted);
  font-size: 12px;
}

/* =========================
   SECTIONS
========================= */

.az-section,
.az-dashboard-grid {
  margin-top: 34px;
}

.az-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 18px;
}

.az-section-head h2 {
  margin: 0;

  color: var(--text);
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.az-section-head p {
  margin: 5px 0 0;
  color: var(--text-muted);
}

.az-section-head a,
.az-view-all {
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 950;
}

.az-section-head.small {
  margin-bottom: 16px;
}

.az-section-head.small h2 {
  font-size: 18px;
}

/* =========================
   POPULAR GAMES
========================= */

.popular-game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.popular-game-card {
  position: relative;
  min-height: 194px;

  padding: 0 0 16px;

  border-radius: 26px;
  overflow: hidden;

  background: var(--home-glass);
  border: 1px solid var(--home-glass-border);

  text-decoration: none;
  color: var(--text);

  box-shadow: var(--home-glass-shadow);

  backdrop-filter: blur(24px) saturate(175%);
  -webkit-backdrop-filter: blur(24px) saturate(175%);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.popular-game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, .46);
  box-shadow:
    0 30px 75px rgba(139, 92, 246, .20),
    inset 0 1px 0 rgba(255, 255, 255, .70);
}

.popular-game-card img {
  width: 100%;
  height: 140px;

  object-fit: cover;
  display: block;

  border-radius: 26px 26px 0 0;
}

.popular-game-card h3 {
  margin: 14px 15px 4px;

  color: var(--text);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -.02em;
}

.popular-game-card p {
  margin: 0 15px;

  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
}

.popular-game-card.locked {
  opacity: .88;
}

/* =========================
   DASHBOARD
========================= */

.az-dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr .9fr;
  gap: 18px;
}

.az-panel {
  padding: 20px;

  border-radius: 30px;

  background: var(--home-glass);
  border: 1px solid var(--home-glass-border);
  box-shadow: var(--home-glass-shadow);

  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
}

/* =========================
   CATEGORY PILLS
========================= */

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}

.category-grid a {
  min-height: 48px;

  padding: 0 13px;

  border-radius: 16px;

  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--text);
  text-decoration: none;

  font-size: 12px;
  font-weight: 900;

  background: rgba(255, 255, 255, .50);
  border: 1px solid rgba(255, 255, 255, .65);

  transition: .22s ease;
}

body.theme-dark .category-grid a,
body.dark .category-grid a {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .10);
}

.category-grid a:hover {
  transform: translateY(-3px);
  background: rgba(139, 92, 246, .12);
  border-color: rgba(139, 92, 246, .42);
}

.category-grid img,
.category-grid i {
  width: 23px;
  height: 23px;

  border-radius: 8px;
  object-fit: cover;

  color: var(--primary);
}

/* =========================
   WHY CHOOSE
========================= */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.why-grid div {
  min-height: 112px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  text-align: center;
  border-radius: 20px;

  transition: .22s ease;
}

.why-grid div:hover {
  background: rgba(139, 92, 246, .08);
  transform: translateY(-2px);
}

.why-grid i {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  color: var(--primary);
  background: rgba(139, 92, 246, .14);
  border: 1px solid rgba(139, 92, 246, .18);

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .36);
}

.why-grid strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
}

.why-grid span {
  color: var(--text-muted);
  font-size: 11px;
}

/* =========================
   PROMO
========================= */

.promo-list {
  display: grid;
  gap: 10px;
}

.promo-item {
  min-height: 78px;

  padding: 13px;

  border-radius: 20px;

  display: flex;
  justify-content: space-between;
  gap: 10px;

  background:
    linear-gradient(135deg,
      rgba(139, 92, 246, .16),
      rgba(255, 255, 255, .36));

  border: 1px solid rgba(255, 255, 255, .62);
  box-shadow: 0 14px 35px rgba(31, 41, 55, .07);

  transition: .22s ease;
}

body.theme-dark .promo-item,
body.dark .promo-item {
  background:
    linear-gradient(135deg,
      rgba(139, 92, 246, .22),
      rgba(255, 255, 255, .06));

  border-color: rgba(255, 255, 255, .10);
}

.promo-item:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, .42);
}

.promo-item strong,
.promo-item span,
.promo-item small {
  display: block;
}

.promo-item strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
}

.promo-item span {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 11px;
}

.promo-item small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10px;
}

.promo-item i {
  align-self: center;

  color: var(--primary);
  font-size: 28px;
}

/* =========================
   FOOTER
========================= */

.az-footer {
  width: min(var(--home-max), calc(100% - 32px));

  margin: 46px auto 0;
  padding: 28px 0 95px;

  border-top: 1px solid var(--border);
}

.az-footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr .75fr 1fr;
  gap: 50px;
}

.az-footer h3 {
  margin: 0 0 12px;

  color: var(--text);
  font-size: 16px;
}

.az-footer p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.az-footer a {
  display: block;

  margin: 8px 0;

  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
}

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

.payment-logos img {
  width: 56px;
  height: 32px;

  padding: 6px;

  object-fit: contain;

  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
}

/* =========================
   MOBILE DRAWER / NAV
========================= */

.az-mobile-drawer-overlay,
.az-mobile-drawer,
.az-bottom-nav {
  display: none;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1024px) {
  .az-home {
    width: calc(100% - 24px);
  }

  .az-hero {
    min-height: 320px;
    padding: 38px;
  }

  .popular-game-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .az-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  body {
    padding-bottom: 88px;
  }

  .az-home {
    width: calc(100% - 24px);
    margin-top: 18px;
  }

  .az-banner-zone {
    height: 220px;
    margin-top: 14px;
  }

  .az-banner-track {
    height: 200px;
  }

  .az-banner-card {
    width: 82vw;
    height: 190px;
    border-radius: 20px;
  }

  .az-banner-dots {
    bottom: 22px;
  }

  .az-banner-dots button {
    width: 24px;
    height: 4px;
  }

  .az-banner-dots button.active {
    width: 48px;
  }

  .az-hero {
    min-height: 236px;
    grid-template-columns: 1fr;
    padding: 28px 22px;
    border-radius: 22px;
  }

  .az-hero h1 {
    max-width: 245px;
    font-size: 26px;
  }

  .az-hero p {
    max-width: 185px;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.55;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 9px;
  }

  .az-hero-actions {
    margin-top: 16px;
    gap: 10px;
  }

  .az-primary-btn,
  .az-secondary-btn {
    height: 38px;
    padding: 0 14px;

    border-radius: 9px;

    font-size: 11px;
  }

  .az-hero-art {
    width: 62%;
    opacity: .92;
  }

  .az-trust-row {
    display: none;
  }

  .az-section {
    margin-top: 28px;
  }

  .az-section-head h2 {
    font-size: 20px;
  }

  .popular-game-grid {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
  }

  .popular-game-grid::-webkit-scrollbar {
    display: none;
  }

  .popular-game-card {
    min-width: 142px;
    min-height: 184px;

    border-radius: 22px;
    scroll-snap-align: start;
    padding-bottom: 14px;

    background: var(--home-glass);
    border: 1px solid var(--home-glass-border);
    box-shadow: var(--home-glass-shadow);
  }

  .popular-game-card img {
    width: 100%;
    height: 108px;

    margin: 0;

    border-radius: 22px 22px 0 0;
  }

  .popular-game-card h3 {
    margin: 12px 12px 4px;

    text-align: left;
    font-size: 14px;
  }

  .popular-game-card p {
    margin: 0 12px;

    text-align: left;
    font-size: 11px;
  }

  .az-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
  }

  .az-panel {
    padding: 16px;
    border-radius: 24px;
  }

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

  .why-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .why-grid div {
    min-height: 86px;
  }

  .why-grid i {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .why-grid strong {
    font-size: 10px;
  }

  .why-grid span {
    font-size: 9px;
  }

  .az-footer {
    display: none;
  }

  .az-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: 70px;
    z-index: 999;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;

    border-radius: 24px;
    background: var(--home-glass-strong);
    border: 1px solid var(--home-glass-border);
    box-shadow: var(--home-glass-shadow);

    backdrop-filter: blur(24px) saturate(175%);
    -webkit-backdrop-filter: blur(24px) saturate(175%);
  }

  .az-bottom-nav a {
    position: relative;

    display: grid;
    place-items: center;
    gap: 4px;

    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 850;
  }

  .az-bottom-nav a i {
    font-size: 18px;
  }

  .az-bottom-nav a.active {
    color: var(--primary);
  }

  .az-bottom-nav .topup-float {
    margin-top: -28px;
    color: #fff;
  }

  .az-bottom-nav .topup-float i {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    box-shadow: 0 14px 30px rgba(139, 92, 246, .42);
  }

  .az-bottom-nav .topup-float span {
    color: var(--text-muted);
  }

  .az-mobile-drawer-overlay.show {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;

    background: rgba(0, 0, 0, .42);
    backdrop-filter: blur(4px);
  }

  .az-mobile-drawer {
    position: fixed;
    top: 0;
    left: -290px;
    z-index: 1001;

    width: 280px;
    height: 100vh;

    display: flex;
    flex-direction: column;
    gap: 8px;

    padding: 24px;

    background: var(--card);
    border-right: 1px solid var(--border);

    transition: .28s ease;
  }

  .az-mobile-drawer.show {
    left: 0;
  }

  .az-mobile-drawer a,
  .drawer-close {
    min-height: 44px;

    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--text);
    text-decoration: none;
    font-weight: 800;

    background: transparent;
    border: none;
  }

  .drawer-close {
    justify-content: flex-end;
    font-size: 22px;
    margin-bottom: 14px;
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 430px) {
  .popular-game-card {
    min-width: 132px;
  }

  .category-grid a {
    min-height: 44px;
    font-size: 11px;
  }

  .az-panel {
    padding: 14px;
  }
}