/* Homepage — dark navy theme (sample match) */
.kz-home {
  --kz-accent: #4da3e0;
  --kz-accent-2: #2d6fb8;
  --kz-accent-grad: linear-gradient(180deg, #4da3e0 0%, #2d6fb8 100%);
  --kz-accent-grad-h: linear-gradient(135deg, #4da3e0 0%, #2d6fb8 55%, #1e4f8c 100%);
  --kz-bg-top: #101c3d;
  --kz-bg-bottom: #080d1a;
  --kz-surface: #161f33;
  --kz-surface-2: #1a2540;
  --kz-text: #ffffff;
  --kz-muted: #a0aec0;
  --kz-border: rgba(255, 255, 255, 0.1);
  --kz-gold: #e8d48b;
  --kz-green: #4da3e0;
  --kz-green-dark: #2d6fb8;
  --kz-bg: var(--kz-bg-top);
  min-height: 100vh;
  background: linear-gradient(180deg, var(--kz-bg-top) 0%, #0b142b 48%, var(--kz-bg-bottom) 100%);
  padding-bottom: 72px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--kz-text);
}

.kz-home * { box-sizing: border-box; }

body.kz-home-body {
  background: #080d1a !important;
  color: #fff;
}

.kz-home-header {
  position: relative;
  height: 52px;
}

.kz-home-header__inner {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  background: linear-gradient(180deg, #152246 0%, #101c3d 100%);
  box-shadow: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kz-home-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.kz-home-header__logo img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.kz-home-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.kz-home-header__balance {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: min(56vw, 210px);
  height: 30px;
  padding: 0 3px 0 3px;
  border-radius: 999px;
  background: #0a1428;
  border: 1px solid rgba(255, 214, 120, 0.32);
  box-shadow: none;
}

.kz-home-header__vnd-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffe59a 0%, #f0b429 42%, #d48900 100%);
  color: #6b3a00;
  font-size: 12px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.kz-home-header__amount {
  flex: 1;
  min-width: 0;
  font-size: 13px;
 
  color: #ffe9b0;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kz-home-header__deposit {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #5eb0e8 0%, #2d6fb8 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  text-decoration: none;
  border: 0;
}

.kz-home-header__avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--kz-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.kz-home-header__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kz-home-header__avatar-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1e3a6e 0%, #0d2148 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.kz-home-header__login {
  position: relative;
  overflow: hidden;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #fff8e7;
  background:
    linear-gradient(180deg, rgba(255, 220, 140, 0.18) 0%, transparent 42%),
    linear-gradient(135deg, #1e4a8c 0%, #12306a 48%, #0a1f4a 100%);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
  box-shadow:
    0 0 0 1px rgba(8, 13, 26, 0.35) inset,
    0 4px 14px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(212, 175, 55, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.kz-home-header__login::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 36%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  animation: kzLoginShine 2.8s ease-in-out infinite;
  pointer-events: none;
}

.kz-home-header__login:active {
  transform: scale(0.97);
  filter: brightness(1.06);
  box-shadow:
    0 0 0 1px rgba(8, 13, 26, 0.35) inset,
    0 2px 8px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(212, 175, 55, 0.18);
}

@keyframes kzLoginShine {
  0%, 55% { left: -40%; opacity: 0; }
  65% { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

.kz-home-header__menu {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #c5d4eb;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.kz-home-header__lang {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  overflow: visible;
}

.kz-home-header__lang img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
}

.kz-home-header__lang.btcbet-flag-right::after {
  color: #a0aec0;
  bottom: -4px;
  right: -4px;
}

@media (min-width: 501px) {
  .kz-home-header__inner {
    width: 500px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

.kz-home .header,
.kz-home .header-wrap {
  display: none !important;
}

.kz-home .news {
  margin: 0 !important;
  margin-left: 0 !important;
  height: auto !important;
  min-height: 32px;
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  display: block !important;
}

.kz-home .news-wrapper {
  width: 100% !important;
  padding: 8px 12px !important;
}

.kz-home .news .domain {
  display: none !important;
}

.kz-home .news app-hot-news > div,
.kz-home .news .relative.h-6 {
  height: auto !important;
  min-height: 24px;
  line-height: 1.4 !important;
  padding-left: 28px !important;
  padding-right: 0 !important;
  color: #e8f4ff !important;
}

.kz-home .news .fa-volume {
  color: #8eb6e0 !important;
}

.kz-home .news .ngx-marquee,
.kz-home .news .marquee-content,
.kz-home .news span,
.kz-home .news p,
.kz-home .news div {
  color: #e8f4ff !important;
}

.kz-home .news .absolute.top-0.left-2 {
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.kz-home .home-banner-wrap {
  margin: 0 !important;
  padding: 10px 12px 0;
  background: transparent;
}

.kz-home .mySwiperBanner {
  border-radius: 12px;
  overflow: hidden;
  height: auto !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.kz-home .mySwiperBanner .swiper-slide,
.kz-home .mySwiperBanner .swiper-slide a {
  height: auto !important;
}

.kz-home .home-banner-img {
  width: 100%;
  height: auto !important;
  object-fit: contain;
}

.kz-home .mySwiperBanner .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

.kz-home .mySwiperBanner .swiper-pagination-bullet-active {
  background: var(--kz-accent-grad);
}

.kz-home__jackpot {
  margin: 12px 12px 0;
  padding: 16px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #123a7a 0%, #0a1f4a 45%, #071530 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  color: #fff;
  text-align: center;
}

.kz-home__jackpot--bottom {
  margin: 16px 12px 12px;
}

.kz-home__jackpot h2 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.kz-home__jackpot .gold {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--kz-gold);
}

.kz-home__jackpot button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a3d 0%, #ff4d2e 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 28px;
  cursor: pointer;
}

.kz-home__top-section {
  padding: 0 12px;
  margin: 12px auto 4px;
}

.kz-home__winning-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.kz-winning-swiper {
  overflow: hidden;
}

.kz-winning-swiper .swiper-slide {
  width: auto;
}

.kz-winning-item {
  display: flex;
  align-items: center;
  width: 190px;
  gap: 8px;
  padding-right: 5px;
  box-sizing: border-box;
  border-radius: 8px;
  background: linear-gradient(145deg, #1a2540 0%, #121b30 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kz-winning-item > img {
  flex-shrink: 0;
  width: auto;
  height: 65px;
  border-radius: 8px;
  object-fit: cover;
}

.kz-winning-item__details {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

.kz-winning-item__details p {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  color: #f0d78c !important;
}

.kz-winning-item__details label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 2px 0;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 500;
  color: #ffffff !important;
}

.kz-winning-item__details span {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 400;
  color: #c5d4eb !important;
}

.kz-home__promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
}

.kz-home__promo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  min-height: 64px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.kz-home__promo--referral {
  background: linear-gradient(135deg, #ff9a3d 0%, #ff5a1a 100%);
}

.kz-home__promo--special {
  background: linear-gradient(135deg, #3d8bff 0%, #7b5cff 55%, #ff5db1 100%);
}

.kz-home__promo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.kz-home__cats {
  padding: 4px 12px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.kz-home__cats::-webkit-scrollbar { display: none; }

.kz-home__cats-row {
  display: flex;
  gap: 10px;
  min-width: max-content;
}

.kz-home__cat {
  flex-shrink: 0;
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  color: #e8f1ff;
}

.kz-home__cat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(160deg, #1e2d52 0%, #141e38 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: none;
}

.kz-home__cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.kz-home__cat.is-active .kz-home__cat-icon {
  background: var(--kz-accent-grad);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
  transform: translateY(-1px) scale(1.04);
}

.kz-home__cat.is-active {
  color: #fff;
}

.kz-home__cat-label {
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
  max-width: 60px;
  color: inherit;
}

.kz-home__section {
  padding: 8px 12px 0;
}

.kz-home__section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.kz-home__section-head img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(1.15);
}

.kz-home__section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.kz-home__section-head a,
.kz-home__section-head .more {
  margin-left: auto;
  color: #9ec9ef;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.kz-home__providers {
  display: grid;
  gap: 10px;
}

.kz-home__provider {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.kz-home__provider img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.kz-home__provider--full { grid-column: 1 / -1; }

.kz-home__providers-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kz-home__group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 2px;
  padding: 2px 2px 0;
}

.kz-home__group-head img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(1.12);
}

.kz-home__group-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}

.kz-home__group-head .more {
  margin-left: auto;
  color: #9ec9ef;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.kz-home__badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 12px 0 7px;
  border: 0;
  border-radius: 0;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #ff4d5e 0%, #d4122d 100%);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.kz-home__badge--hot {
  background: linear-gradient(135deg, #ffc14d 0%, #ff8a1f 48%, #e85d04 100%);
}

.kz-home__games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 16px;
}

.kz-home__game {
  display: block;
  text-decoration: none;
  color: #fff;
}

.kz-home__game img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(160deg, #1a2540 0%, #10182c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kz-home__game span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e8f1ff;
}

.kz-home .footer_layout,
.kz-home app-footer-layout {
  background: transparent;
}

/* Bottom nav — dark navy on homepage */
body.kz-home-body .kz-nav {
  --kz-nav-green: #6eb6e8;
  --kz-nav-muted: #8fa0b8;
  --kz-nav-text: #d6e4f7;
  --kz-nav-bg: #121c38;
  background: var(--kz-nav-bg);
  box-shadow: none;
  border: 0;
}

body.kz-home-body .kz-nav__bump {
  background: var(--kz-nav-bg);
  border: 0;
  outline: none;
  box-shadow: none;
  filter: none;
}

body.kz-home-body .kz-nav__item.is-active .kz-nav__label {
  color: #b8d4f0;
}

body.kz-home-body .kz-nav__label {
  color: var(--kz-nav-text);
}

/* Homepage BGM toggle */
.kz-home-bgm-toggle {
  position: fixed;
  right: 12px;
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 90;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: linear-gradient(160deg, #1a2540 0%, #121c36 100%);
  color: #d6e4f7;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  -webkit-tap-highlight-color: transparent;
}

.kz-home-bgm-toggle:active {
  transform: scale(0.96);
  opacity: 0.9;
}

.kz-home-bgm-toggle.is-muted {
  color: #8fa0b8;
}

@media (min-width: 501px) {
  .kz-home-bgm-toggle {
    right: calc(50% - 250px + 12px);
  }
}
