body.template-2-home {
  background: #07111f;
  color: #e8f1ff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.template-2-home main {
  width: min(100% - 32px, 1240px);
  margin: 0 auto;
}

.modern2-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 17, 31, 0.94);
  border-bottom: 1px solid rgba(125, 184, 255, 0.18);
  backdrop-filter: blur(16px);
}

.modern2-header-inner {
  width: min(100% - 32px, 1240px);
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px 1fr auto;
  align-items: center;
  gap: 24px;
}

.modern2-brand,
.modern2-nav a,
.modern2-actions a,
.modern2-quick-links a,
.modern2-section-heading a,
.modern2-text-link,
.modern2-provider,
.modern2-feature-card,
.modern2-game-card,
.modern2-latest-card {
  text-decoration: none;
}

.modern2-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}

.modern2-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.modern2-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.modern2-nav a {
  color: #9bb9dc;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.modern2-nav a:hover,
.modern2-section-heading a:hover,
.modern2-text-link:hover {
  color: #fff;
}

.modern2-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modern2-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 7px;
  color: #fff;
  background: var(--color-primary, #006eff);
  border: 1px solid var(--color-primary, #006eff);
  font-size: 0.82rem;
  font-weight: 800;
}

.modern2-button:hover {
  color: #fff;
  background: var(--color-hover, #0054bf);
}

.modern2-deposit-button {
  gap: 6px;
}

.modern2-button-ghost,
.modern2-balance {
  background: transparent;
  border-color: rgba(143, 193, 255, 0.3);
}

.modern2-user-panel {
  display: grid;
  gap: 2px;
  min-width: 128px;
  padding: 6px 11px;
  color: #f5f9ff;
  background: #102b49;
  border: 1px solid rgba(143, 193, 255, 0.3);
  border-radius: 7px;
  text-decoration: none;
}

.modern2-user-panel:hover {
  color: #fff;
  border-color: var(--color-primary, #006eff);
  background: var(--color-hover, #0054bf);
}

.modern2-user-panel strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modern2-user-panel span {
  color: #a9cbed;
  font-size: 0.68rem;
  font-weight: 700;
}

.modern2-hero {
  min-height: 460px;
  margin: 28px 0 22px;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(125, 184, 255, 0.2);
  border-radius: 24px;
  background: #0b1d32;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.modern2-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  background: linear-gradient(145deg, #0c2743, #0a1627);
}

.modern2-kicker {
  display: block;
  margin-bottom: 10px;
  color: #64b5ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modern2-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 4.7rem);
  line-height: 0.98;
}

.modern2-hero p {
  max-width: 34rem;
  margin: 22px 0 28px;
  color: #a8c3e4;
  line-height: 1.7;
}

.modern2-hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.modern2-text-link {
  color: #8fc2f6;
  font-size: 0.9rem;
  font-weight: 800;
}

.modern2-hero-slides {
  position: relative;
  min-height: 460px;
  background: #07111f;
}

.modern2-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.modern2-slide.is-active {
  opacity: 1;
}

.modern2-quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 54px;
}

.modern2-quick-links a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px;
  color: #dcecff;
  background: #0a182a;
  border: 1px solid rgba(125, 184, 255, 0.14);
  border-radius: 12px;
}

.modern2-quick-links strong {
  color: #579fe7;
  font-size: 0.75rem;
}

.modern2-quick-links span {
  font-size: 0.82rem;
  font-weight: 800;
}

.modern2-quick-links i {
  color: #72b8f4;
  font-style: normal;
}

.modern2-section {
  margin: 0 0 58px;
}

.modern2-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.modern2-section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.modern2-section-heading a {
  color: #76baf2;
  font-size: 0.82rem;
  font-weight: 800;
}

.modern2-provider-rail,
.modern2-latest-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
}

.modern2-provider {
  flex: 0 0 148px;
  display: grid;
  gap: 10px;
  padding: 14px;
  color: #a8c8ea;
  background: #0c1b2e;
  border: 1px solid rgba(125, 184, 255, 0.16);
  border-radius: 12px;
}

.modern2-provider img {
  width: 100%;
  height: 62px;
  object-fit: contain;
  background: #07111f;
  border-radius: 8px;
}

.modern2-provider span {
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modern2-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  gap: 14px;
}

.modern2-feature-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-radius: 16px;
  background: #10253d;
}

.modern2-feature-card:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.modern2-feature-card:nth-child(4n + 2) {
  grid-row: span 2;
}

.modern2-feature-card img,
.modern2-game-card img,
.modern2-latest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modern2-feature-card::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(2, 8, 17, 0.92));
}

.modern2-feature-card span {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 1;
  display: grid;
  gap: 4px;
  color: #fff;
}

.modern2-feature-card small {
  color: #76baf2;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.modern2-feature-card strong {
  overflow: hidden;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modern2-game-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.modern2-game-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #e8f1ff;
}

.modern2-game-card img {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 1px solid rgba(125, 184, 255, 0.16);
  transition: transform 0.2s ease;
}

.modern2-game-card:hover img {
  transform: translateY(-4px);
}

.modern2-game-card strong,
.modern2-game-card span,
.modern2-latest-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modern2-game-card strong {
  font-size: 0.78rem;
}

.modern2-game-card span {
  color: #7594b6;
  font-size: 0.68rem;
}

.modern2-latest-card {
  flex: 0 0 150px;
  display: grid;
  gap: 8px;
  color: #e8f1ff;
}

.modern2-latest-card img {
  height: 150px;
  border-radius: 14px;
}

.modern2-latest-card strong {
  font-size: 0.78rem;
}

@media (max-width: 800px) {
  .modern2-header-inner {
    grid-template-columns: auto 1fr auto;
    min-height: 56px;
    gap: 12px;
    padding: 8px 0;
  }

  .modern2-brand {
    font-size: 0.95rem;
  }

  .modern2-brand img {
    max-height: 32px;
  }

  .modern2-nav {
    display: none;
  }

  .modern2-actions {
    gap: 8px;
  }

  .modern2-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 0;
  }

  .modern2-hero-copy {
    padding: 40px 20px 32px;
    min-height: auto;
  }

  .modern2-hero-copy h1 {
    font-size: 2rem;
  }

  .modern2-hero-copy p {
    font-size: 0.95rem;
  }

  .modern2-hero-slides {
    min-height: 240px;
  }

  .modern2-quick-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
  }

  .modern2-quick-links a {
    padding: 20px 16px;
    font-size: 0.9rem;
  }

  .modern2-section {
    margin-bottom: 40px;
  }

  .modern2-section-heading h2 {
    font-size: 1.5rem;
  }

  .modern2-feature-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 12px;
  }

  .modern2-feature-card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .modern2-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .modern2-game-card {
    min-height: 140px;
  }
}

@media (max-width: 480px) {
  .template-2-home main,
  .modern2-header-inner {
    width: min(100% - 16px, 1240px);
  }

  .modern2-brand {
    font-size: 0.85rem;
    gap: 6px;
  }

  .modern2-brand span {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .modern2-brand img {
    max-height: 28px;
  }

  .modern2-actions {
    gap: 6px;
  }

  .modern2-user-panel {
    min-width: 0;
    max-width: 100px;
    font-size: 0.75rem;
    padding: 8px 10px;
  }

  .modern2-user-panel span {
    font-size: 0.7rem;
  }

  .modern2-actions .modern2-button {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .modern2-deposit-button {
    display: none;
  }

  .modern2-hero-copy {
    padding: 32px 16px 24px;
  }

  .modern2-hero-copy h1 {
    font-size: 1.75rem;
  }

  .modern2-hero-copy p {
    font-size: 0.9rem;
  }

  .modern2-hero-slides {
    min-height: 200px;
  }

  .modern2-quick-links {
    gap: 10px;
  }

  .modern2-quick-links a {
    grid-template-columns: auto 1fr;
    padding: 16px 14px;
    font-size: 0.85rem;
  }

  .modern2-quick-links strong {
    font-size: 1.1rem;
  }

  .modern2-quick-links i {
    display: none;
  }

  .modern2-section {
    margin-bottom: 36px;
  }

  .modern2-section-heading {
    margin-bottom: 20px;
  }

  .modern2-section-heading h2 {
    font-size: 1.3rem;
  }

  .modern2-section-heading .modern2-kicker {
    font-size: 0.7rem;
  }

  .modern2-provider-rail {
    gap: 12px;
  }

  .modern2-provider {
    min-width: 100px;
    padding: 14px;
  }

  .modern2-provider img {
    max-height: 36px;
  }

  .modern2-provider span {
    font-size: 0.75rem;
  }

  .modern2-feature-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
    gap: 10px;
  }

  .modern2-feature-card:nth-child(1) {
    grid-column: span 1;
  }

  .modern2-game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .modern2-game-card {
    min-height: 160px;
  }

  .modern2-game-card span {
    font-size: 0.8rem;
  }

  .modern2-latest-grid {
    gap: 10px;
  }

  .modern2-latest-card {
    padding: 12px;
  }

  .modern2-latest-card img {
    width: 64px;
    height: 64px;
  }

  .modern2-latest-card span {
    font-size: 0.85rem;
  }

  .modern2-latest-card strong {
    font-size: 0.75rem;
  }

  .modern2-footer {
    padding: 32px 16px;
  }

  .modern2-footer-nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
