/* =====================================================================
   666-casino.click - core basefile CSS (class prefix: ui7d-)
   Palette: #FF0000 (brand red) | #1A1A1A (dark) | #F5F5F5 (text light)
   Mobile-first, max-width: 430px
   ===================================================================== */

:root {
  --ui7d-red: #FF0000;
  --ui7d-red-dark: #C00000;
  --ui7d-dark: #1A1A1A;
  --ui7d-dark-2: #242424;
  --ui7d-dark-3: #2E2E2E;
  --ui7d-gold: #FFD200;
  --ui7d-light: #F5F5F5;
  --ui7d-muted: #B8B8B8;
  --ui7d-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--ui7d-dark);
  color: var(--ui7d-light);
  line-height: 1.55;
  font-size: 15px;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--ui7d-gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ============== HEADER ============== */
.ui7d-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  background: linear-gradient(90deg, #1A1A1A 0%, #2a0606 60%, #1A1A1A 100%);
  border-bottom: 2px solid var(--ui7d-red);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.ui7d-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ui7d-logo img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--ui7d-red);
}
.ui7d-logo-text {
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.ui7d-logo-text span { color: var(--ui7d-red); }

.ui7d-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ui7d-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.ui7d-btn-login {
  background: transparent;
  color: #fff;
  border: 1.5px solid var(--ui7d-red);
}
.ui7d-btn-login:hover { background: rgba(255, 0, 0, 0.15); }
.ui7d-btn-register {
  background: linear-gradient(180deg, var(--ui7d-red) 0%, var(--ui7d-red-dark) 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(255, 0, 0, 0.5);
}
.ui7d-btn-register:hover { transform: translateY(-1px); }
.ui7d-menu-toggle {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  padding: 4px 6px;
  cursor: pointer;
}

/* ============== MOBILE EXPANDABLE MENU ============== */
.ui7d-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--ui7d-dark-2);
  z-index: 9999;
  padding: 70px 16px 24px;
  overflow-y: auto;
  transition: right 0.28s ease;
  border-left: 2px solid var(--ui7d-red);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.6);
}
.ui7d-mobile-menu.ui7d-open { right: 0; }
.ui7d-mobile-menu h4 {
  color: var(--ui7d-red);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 14px 0 8px;
  border-bottom: 1px solid #3a3a3a;
  padding-bottom: 4px;
}
.ui7d-mobile-menu a {
  display: block;
  padding: 10px 8px;
  color: var(--ui7d-light);
  font-size: 14px;
  border-radius: 6px;
  border-bottom: 1px solid #2a2a2a;
}
.ui7d-mobile-menu a:hover { background: rgba(255, 0, 0, 0.15); text-decoration: none; }
.ui7d-menu-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.ui7d-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
}
.ui7d-overlay.ui7d-open { display: block; }

/* ============== HERO / BANNER ============== */
.ui7d-hero {
  position: relative;
  padding: 26px 16px 22px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 0, 0, 0.25), transparent 60%),
    linear-gradient(180deg, #240505 0%, #1A1A1A 100%);
  text-align: center;
  border-bottom: 1px solid #2a2a2a;
}
.ui7d-hero-tag {
  display: inline-block;
  background: var(--ui7d-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.ui7d-hero h1 {
  font-size: 26px;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 8px;
}
.ui7d-hero h1 span { color: var(--ui7d-red); }
.ui7d-hero p { color: var(--ui7d-muted); font-size: 13px; margin-bottom: 14px; }
.ui7d-hero-cta {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.ui7d-cta-primary {
  background: linear-gradient(180deg, var(--ui7d-red), var(--ui7d-red-dark));
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.5);
  border: none;
  cursor: pointer;
}
.ui7d-cta-ghost {
  background: transparent;
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1.5px solid var(--ui7d-red);
}

/* ============== MARQUEE / PROMO STRIP ============== */
.ui7d-strip {
  background: linear-gradient(90deg, var(--ui7d-red), var(--ui7d-red-dark));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============== SECTIONS ============== */
.ui7d-section { padding: 18px 14px 6px; }
.ui7d-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  border-left: 4px solid var(--ui7d-red);
  padding-left: 10px;
}
.ui7d-section-title i { color: var(--ui7d-red); }

/* ============== CATEGORY CHIPS ============== */
.ui7d-cat-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}
.ui7d-cat-row::-webkit-scrollbar { display: none; }
.ui7d-cat-chip {
  flex: 0 0 auto;
  background: var(--ui7d-dark-3);
  color: #fff;
  border: 1px solid #3a3a3a;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.ui7d-cat-chip.ui7d-active {
  background: var(--ui7d-red);
  border-color: var(--ui7d-red);
  color: #fff;
}

/* ============== GAME GRID ============== */
.ui7d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 14px;
}
.ui7d-card {
  background: var(--ui7d-dark-2);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2e2e2e;
  transition: transform 0.15s ease, border-color 0.2s ease;
  cursor: pointer;
}
.ui7d-card:hover {
  transform: translateY(-2px);
  border-color: var(--ui7d-red);
}
.ui7d-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #000;
}
.ui7d-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ui7d-card-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: var(--ui7d-red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.ui7d-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 22px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ui7d-card:hover .ui7d-card-play { opacity: 1; }
.ui7d-card-name {
  padding: 6px 7px;
  font-size: 11px;
  color: var(--ui7d-light);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============== FEATURES STRIP ============== */
.ui7d-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  padding: 4px 14px 14px;
}
.ui7d-feature {
  background: var(--ui7d-dark-2);
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ui7d-feature i {
  color: var(--ui7d-red);
  font-size: 22px;
  margin-top: 2px;
}
.ui7d-feature h3 { font-size: 13px; color: #fff; margin-bottom: 3px; }
.ui7d-feature p { font-size: 11px; color: var(--ui7d-muted); line-height: 1.4; }

/* ============== SEO TEXT BLOCK ============== */
.ui7d-seo-text {
  padding: 14px;
  background: var(--ui7d-dark-2);
  margin: 6px 14px 18px;
  border-radius: 10px;
  border-left: 3px solid var(--ui7d-red);
}
.ui7d-seo-text h2 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 8px;
}
.ui7d-seo-text p {
  color: var(--ui7d-muted);
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.6;
}
.ui7d-seo-text a { color: var(--ui7d-gold); }

/* ============== FAQ ============== */
.ui7d-faq-item {
  background: var(--ui7d-dark-2);
  border: 1px solid #2e2e2e;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.ui7d-faq-item h3 {
  color: var(--ui7d-red);
  font-size: 13px;
  margin-bottom: 4px;
}
.ui7d-faq-item p { color: var(--ui7d-muted); font-size: 12px; line-height: 1.55; }

/* ============== FOOTER ============== */
.ui7d-footer {
  background: #0F0F0F;
  border-top: 2px solid var(--ui7d-red);
  padding: 20px 14px 30px;
  margin-top: 14px;
}
.ui7d-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.ui7d-footer h4 {
  color: var(--ui7d-red);
  font-size: 13px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ui7d-footer a {
  display: block;
  color: var(--ui7d-muted);
  font-size: 12px;
  padding: 4px 0;
}
.ui7d-footer a:hover { color: var(--ui7d-light); }
.ui7d-footer-bottom {
  text-align: center;
  color: #777;
  font-size: 11px;
  border-top: 1px solid #222;
  padding-top: 12px;
}

/* ============== MOBILE BOTTOM NAV ============== */
.ui7d-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: linear-gradient(180deg, #1F1F1F 0%, #0E0E0E 100%);
  border-top: 2px solid var(--ui7d-red);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.55);
}
.ui7d-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--ui7d-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.18s ease, transform 0.18s ease;
}
.ui7d-bottomnav-btn i,
.ui7d-bottomnav-btn .material-icons-outlined,
.ui7d-bottomnav-btn .ion-icon-fix { font-size: 22px; }
.ui7d-bottomnav-btn:hover { color: #fff; transform: translateY(-2px); }
.ui7d-bottomnav-btn.ui7d-current { color: var(--ui7d-red); }
.ui7d-bottomnav-btn.ui7d-current::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--ui7d-red);
  border-radius: 0 0 4px 4px;
}
.ui7d-bottomnav-btn.ui7d-promo {
  color: #fff;
}
.ui7d-bottomnav-btn.ui7d-promo .ui7d-nav-icon {
  background: linear-gradient(180deg, var(--ui7d-red), var(--ui7d-red-dark));
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(255, 0, 0, 0.6);
  margin-top: -18px;
  border: 2px solid #1A1A1A;
}
.ui7d-bottomnav-btn.ui7d-promo .ui7d-nav-icon i { font-size: 20px; color: #fff; }

/* ============== DESKTOP HIDERS / MOBILE PADDING ============== */
main { padding-bottom: 80px; display: block; }

@media (min-width: 769px) {
  .ui7d-bottomnav { display: none; }
  main { padding-bottom: 24px; }
  body { box-shadow: 0 0 40px rgba(0, 0, 0, 0.6); }
}

@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* ============== UTILITY ============== */
.ui7d-text-center { text-align: center; }
.ui7d-mt-12 { margin-top: 12px; }
.ui7d-hidden { display: none !important; }
