/* ===========================================================
   1xbet app download - core stylesheet (mobile-first, BD)
   All custom classes use the uif3- prefix.
   Palette: #FFFACD | #40E0D0 | #1C2833 | #FF8C00 | #0000FF
   =========================================================== */

:root {
  --uif3-bg: #1C2833;
  --uif3-bg-2: #141d27;
  --uif3-card: #23323f;
  --uif3-text: #FFFACD;
  --uif3-muted: #9fb3c8;
  --uif3-accent: #40E0D0;
  --uif3-accent-2: #FF8C00;
  --uif3-blue: #0000FF;
  --uif3-border: rgba(255, 250, 205, 0.12);
  --uif3-radius: 14px;
  --uif3-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --uif3-header-h: 60px;
  --uif3-bottomnav-h: 62px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
  background: var(--uif3-bg);
  color: var(--uif3-text);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--uif3-accent); text-decoration: none; }
a:hover { color: var(--uif3-accent-2); }

/* Page width cap (mobile-first). The literal max-width: 430px is required. */
.uif3-wrap {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

/* ===================== Header ===================== */
.uif3-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0f1722 0%, #1C2833 60%, #0b1620 100%);
  border-bottom: 1px solid var(--uif3-border);
}
.uif3-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--uif3-header-h);
  gap: 8px;
}
.uif3-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--uif3-text);
  font-size: 16px;
  line-height: 1.1;
}
.uif3-brand i { color: var(--uif3-accent); font-size: 22px; }
.uif3-brand span { color: var(--uif3-accent); }

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

.uif3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 30px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
  line-height: 1;
}
.uif3-btn:hover { transform: translateY(-1px); }
.uif3-btn-primary {
  background: linear-gradient(135deg, var(--uif3-accent-2), #ffae3c);
  color: #1C2833;
  box-shadow: 0 6px 16px rgba(255, 140, 0, 0.35);
}
.uif3-btn-ghost {
  background: transparent;
  color: var(--uif3-text);
  border: 1px solid var(--uif3-accent);
}
.uif3-btn-ghost:hover { background: rgba(64, 224, 208, 0.12); }
.uif3-btn-block { width: 100%; padding: 13px; font-size: 15px; }

.uif3-icon-btn {
  background: transparent;
  border: 1px solid var(--uif3-border);
  color: var(--uif3-text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}

/* ===================== Mobile menu ===================== */
.uif3-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 9998;
}
.uif3-backdrop-show { opacity: 1; visibility: visible; }

.uif3-mobile-menu {
  position: fixed;
  top: 0;
  right: -86%;
  width: 86%;
  max-width: 360px;
  height: 100%;
  background: var(--uif3-bg-2);
  z-index: 9999;
  padding: 22px 18px;
  transform: translateX(0);
  transition: right 0.28s ease;
  overflow-y: auto;
  border-left: 1px solid var(--uif3-border);
}
.uif3-menu-open { right: 0; }
.uif3-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.uif3-menu-head h3 { margin: 0; font-size: 18px; color: var(--uif3-accent); }
.uif3-menu-nav { display: flex; flex-direction: column; gap: 6px; }
.uif3-menu-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 10px;
  color: var(--uif3-text);
  background: var(--uif3-card);
  border: 1px solid var(--uif3-border);
  font-weight: 600;
}
.uif3-menu-nav a:hover { background: rgba(64, 224, 208, 0.12); color: var(--uif3-text); }
.uif3-menu-nav a i { color: var(--uif3-accent); width: 22px; text-align: center; }
.uif3-menu-cta { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

/* ===================== Hero ===================== */
.uif3-hero {
  position: relative;
  padding: 26px 0 28px;
  background:
    radial-gradient(circle at 20% 10%, rgba(64, 224, 208, 0.25), transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(255, 140, 0, 0.22), transparent 55%),
    linear-gradient(135deg, #0b1620, #1C2833);
  border-bottom: 1px solid var(--uif3-border);
  text-align: center;
}
.uif3-hero h1 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.3;
  color: var(--uif3-text);
}
.uif3-hero h1 b { color: var(--uif3-accent); }
.uif3-hero p {
  margin: 0 auto 18px;
  max-width: 380px;
  color: var(--uif3-muted);
  font-size: 14px;
}
.uif3-hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.uif3-hero-badges {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.uif3-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 30px;
  background: rgba(64, 224, 208, 0.12);
  border: 1px solid var(--uif3-border);
  color: var(--uif3-text);
  font-size: 12px;
  font-weight: 600;
}
.uif3-badge i { color: var(--uif3-accent-2); }

/* ===================== Carousel ===================== */
.uif3-section { padding: 22px 0; }
.uif3-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  margin: 0 0 14px;
  color: var(--uif3-text);
}
.uif3-section-title i { color: var(--uif3-accent); }
.uif3-section-title small { margin-left: auto; font-size: 12px; color: var(--uif3-muted); font-weight: 500; }

.uif3-carousel {
  position: relative;
  border-radius: var(--uif3-radius);
  overflow: hidden;
  box-shadow: var(--uif3-shadow);
  background: var(--uif3-card);
}
.uif3-slides { position: relative; }
.uif3-slide {
  position: relative;
  display: none;
  height: 160px;
}
.uif3-slide-active { display: block; }
.uif3-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}
.uif3-slide-cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.uif3-slide-cap span { display: block; font-size: 12px; color: var(--uif3-accent); font-weight: 600; }
.uif3-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}
.uif3-carousel-arrow.uif3-prev { left: 8px; }
.uif3-carousel-arrow.uif3-next { right: 8px; }
.uif3-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  gap: 6px;
  justify-content: center;
}
.uif3-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 250, 205, 0.4);
  border: 0;
  cursor: pointer;
  padding: 0;
}
.uif3-dot-active { background: var(--uif3-accent); width: 20px; border-radius: 6px; }

/* ===================== Category tabs ===================== */
.uif3-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin: 0 -14px 14px;
  padding-left: 14px;
  padding-right: 14px;
  scrollbar-width: none;
}
.uif3-cats::-webkit-scrollbar { display: none; }
.uif3-cat-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 30px;
  background: var(--uif3-card);
  border: 1px solid var(--uif3-border);
  color: var(--uif3-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.uif3-cat-tab i { color: var(--uif3-accent); }
.uif3-cat-active {
  background: linear-gradient(135deg, var(--uif3-accent), #2bb6a9);
  color: #0b1620;
  border-color: transparent;
}
.uif3-cat-active i { color: #0b1620; }

/* ===================== Game grid ===================== */
.uif3-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.uif3-game-card {
  background: var(--uif3-card);
  border: 1px solid var(--uif3-border);
  border-radius: var(--uif3-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.uif3-game-card:hover { transform: translateY(-3px); box-shadow: var(--uif3-shadow); }
.uif3-game-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0b1620;
}
.uif3-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.uif3-game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 22, 32, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.uif3-game-card:hover .uif3-game-overlay { opacity: 1; }
.uif3-game-overlay i { color: #fff; font-size: 26px; }
.uif3-game-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--uif3-accent-2);
  color: #1C2833;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}
.uif3-game-name {
  padding: 7px 6px;
  font-size: 11px;
  text-align: center;
  color: var(--uif3-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================== Promo / feature ===================== */
.uif3-promo {
  background: linear-gradient(135deg, rgba(0, 0, 255, 0.25), rgba(64, 224, 208, 0.18));
  border: 1px solid var(--uif3-border);
  border-radius: var(--uif3-radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.uif3-promo-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--uif3-accent-2);
  color: #1C2833;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.uif3-promo-body h3 { margin: 0 0 4px; font-size: 15px; color: var(--uif3-text); }
.uif3-promo-body p { margin: 0; font-size: 12px; color: var(--uif3-muted); }

.uif3-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.uif3-feature {
  background: var(--uif3-card);
  border: 1px solid var(--uif3-border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.uif3-feature i { font-size: 24px; color: var(--uif3-accent); margin-bottom: 6px; display: inline-block; }
.uif3-feature h4 { margin: 0 0 4px; font-size: 13px; color: var(--uif3-text); }
.uif3-feature p { margin: 0; font-size: 11px; color: var(--uif3-muted); }

/* ===================== SEO content ===================== */
.uif3-seo {
  background: var(--uif3-bg-2);
  border: 1px solid var(--uif3-border);
  border-radius: var(--uif3-radius);
  padding: 18px;
  font-size: 13.5px;
  color: var(--uif3-muted);
}
.uif3-seo h2 { color: var(--uif3-text); font-size: 17px; margin: 18px 0 8px; }
.uif3-seo h2:first-child { margin-top: 0; }
.uif3-seo h3 { color: var(--uif3-accent); font-size: 14px; margin: 14px 0 6px; }
.uif3-seo p { margin: 0 0 10px; }
.uif3-seo a { color: var(--uif3-accent); text-decoration: underline; }
.uif3-seo ul { margin: 0 0 10px; padding-left: 18px; }
.uif3-seo li { margin-bottom: 4px; }

/* ===================== FAQ ===================== */
.uif3-faq-item {
  background: var(--uif3-card);
  border: 1px solid var(--uif3-border);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.uif3-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--uif3-text);
  font-weight: 700;
  font-size: 14px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: inherit;
}
.uif3-faq-q i { color: var(--uif3-accent); transition: transform 0.2s ease; }
.uif3-faq-open .uif3-faq-q i { transform: rotate(180deg); }
.uif3-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 14px;
  color: var(--uif3-muted);
  font-size: 13px;
}
.uif3-faq-open .uif3-faq-a { max-height: 360px; padding: 0 14px 14px; }

/* ===================== Footer ===================== */
.uif3-footer {
  background: var(--uif3-bg-2);
  border-top: 1px solid var(--uif3-border);
  padding: 24px 0 20px;
  margin-top: 10px;
}
.uif3-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.uif3-footer h4 { font-size: 13px; color: var(--uif3-accent); margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.uif3-footer ul { list-style: none; padding: 0; margin: 0; }
.uif3-footer li { margin-bottom: 6px; }
.uif3-footer a { color: var(--uif3-muted); font-size: 12.5px; }
.uif3-footer a:hover { color: var(--uif3-accent); }
.uif3-footer-bottom {
  border-top: 1px solid var(--uif3-border);
  padding-top: 14px;
  text-align: center;
  color: var(--uif3-muted);
  font-size: 11.5px;
}

/* ===================== Mobile bottom nav ===================== */
.uif3-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--uif3-bottomnav-h);
  background: linear-gradient(135deg, #0b1620, #1C2833);
  border-top: 1px solid var(--uif3-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.4);
}
.uif3-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--uif3-muted);
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none;
  min-width: 60px;
  min-height: 60px;
  padding: 4px 2px;
  position: relative;
  transition: color 0.15s ease;
}
.uif3-nav-item i { font-size: 22px; }
.uif3-nav-item:hover { color: var(--uif3-text); }
.uif3-nav-item.uif3-nav-current { color: var(--uif3-accent); }
.uif3-nav-item.uif3-nav-current::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--uif3-accent);
}
.uif3-nav-item.uif3-nav-promo {
  color: var(--uif3-accent-2);
}
.uif3-nav-item.uif3-nav-promo i {
  background: linear-gradient(135deg, var(--uif3-accent-2), #ffae3c);
  color: #1C2833;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-top: -18px;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.45);
  border: 3px solid #1C2833;
}

/* Bottom padding so content isn't hidden behind the fixed nav (mobile only) */
main { padding-bottom: calc(var(--uif3-bottomnav-h) + 12px); }

/* ===================== Desktop ===================== */
.uif3-desktop-only { display: none; }

@media (min-width: 769px) {
  .uif3-wrap { max-width: 960px; padding: 0 20px; }
  .uif3-bottom-nav { display: none; }
  .uif3-desktop-only { display: flex; }
  .uif3-mobile-only { display: none; }
  main { padding-bottom: 0; }
  .uif3-game-grid { grid-template-columns: repeat(5, 1fr); }
  .uif3-features { grid-template-columns: repeat(4, 1fr); }
  .uif3-footer-cols { grid-template-columns: repeat(4, 1fr); }
  .uif3-hero h1 { font-size: 30px; }
}
