/* ============================================================
 * kkdb.homes mobile-first theme
 * All custom classes use the `uid4-` / `appad4-` prefixes.
 * Palette: #0C0C0C bg / #D4AF37 gold / #FFB6C1 blush /
 *          #E91E63 magenta / #FFEF94 honey / #F5F5F5 text.
 * ============================================================ */

:root {
  --appad4-bg: #0C0C0C;
  --appad4-bg-soft: #161616;
  --appad4-bg-card: #1E1E1E;
  --appad4-gold: #D4AF37;
  --appad4-gold-soft: #FFEF94;
  --appad4-blush: #FFB6C1;
  --appad4-magenta: #E91E63;
  --appad4-text: #F5F5F5;
  --appad4-muted: #B8B8B8;
  --appad4-border: #2A2A2A;
  --appad4-shadow: 0 6px 22px rgba(0, 0, 0, .45);
  --appad4-radius: 14px;
  --appad4-max: 430px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi", system-ui, Arial, sans-serif;
  background: radial-gradient(circle at 50% 0%, #1c1117 0%, var(--appad4-bg) 55%);
  color: var(--appad4-text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* Desktop: keep mobile canvas centered */
.uid4-wrap {
  width: 100%;
  max-width: var(--appad4-max);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--appad4-bg);
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,.6);
}

/* ====================== HEADER ====================== */
.uid4-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(20,12,12,.96), rgba(12,12,12,.96));
  border-bottom: 1px solid var(--appad4-border);
  backdrop-filter: blur(6px);
}

.uid4-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.uid4-brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--appad4-gold);
  flex: 0 0 auto;
}
.uid4-brand b {
  font-size: 19px;
  color: var(--appad4-gold);
  letter-spacing: .5px;
  line-height: 1.1;
}
.uid4-brand span {
  font-size: 10.5px;
  color: var(--appad4-blush);
  display: block;
  margin-top: 1px;
}

.uid4-hbtns {
  display: flex;
  align-items: center;
  gap: 7px;
}
.uid4-btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
}
.uid4-btn:active { transform: scale(.95); }
.uid4-login {
  background: transparent;
  color: var(--appad4-text);
  border: 1px solid var(--appad4-gold);
}
.uid4-register {
  background: linear-gradient(135deg, var(--appad4-magenta), var(--appad4-gold));
  color: #1a0a10;
  box-shadow: 0 4px 14px rgba(233, 30, 99, .35);
}
.uid4-menu-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--appad4-bg-card);
  border: 1px solid var(--appad4-border);
  color: var(--appad4-gold);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ====================== DRAWER ====================== */
.uid4-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 80;
}
.appad4-backdrop-show {
  opacity: 1;
  pointer-events: auto;
}

.uid4-drawer {
  position: fixed;
  top: 0; right: -86%;
  width: 78%;
  max-width: 320px;
  height: 100%;
  background: linear-gradient(180deg, #1a0e10, #0C0C0C);
  border-left: 1px solid var(--appad4-gold);
  z-index: 90;
  padding: 18px 16px 30px;
  transition: right .28s ease;
  overflow-y: auto;
}
.appad4-drawer-open { right: 0; }

.uid4-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.uid4-drawer-head b { color: var(--appad4-gold); font-size: 18px; }
.uid4-drawer-close {
  background: transparent; border: 0; color: var(--appad4-text);
  font-size: 22px; cursor: pointer; line-height: 1;
}
.uid4-drawer-cta {
  display: block; text-align: center; margin: 6px 0 14px;
  padding: 12px; border-radius: 12px;
  background: linear-gradient(135deg, var(--appad4-magenta), var(--appad4-gold));
  color: #1a0a10; font-weight: 700;
}
.uid4-drawer-nav { list-style: none; margin: 0; padding: 0; }
.uid4-drawer-nav li { margin: 0; }
.uid4-drawer-nav a {
  display: block;
  padding: 11px 12px;
  color: var(--appad4-text);
  border-bottom: 1px dashed var(--appad4-border);
  font-size: 14.5px;
}
.uid4-drawer-nav a::before {
  content: "▸";
  color: var(--appad4-gold);
  margin-right: 8px;
}

/* ====================== HERO ====================== */
.uid4-hero {
  position: relative;
  margin: 12px 12px 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--appad4-shadow);
}
.uid4-hero-track { position: relative; }
.uid4-hero-slide {
  display: none;
  position: relative;
  padding: 22px 16px 28px;
  min-height: 168px;
  background-size: cover;
  background-position: center;
}
.uid4-hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,8,8,.88) 0%, rgba(12,8,8,.45) 60%, rgba(12,8,8,.1) 100%);
}
.appad4-hero-active { display: block; }
.uid4-hero-slide-inner {
  position: relative; z-index: 2;
  max-width: 75%;
}
.uid4-hero-slide h2 {
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.25;
  color: var(--appad4-gold-soft);
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.uid4-hero-slide p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--appad4-text);
  opacity: .94;
}
.uid4-hero-cta {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--appad4-magenta), var(--appad4-gold));
  color: #1a0a10;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(233,30,99,.35);
}

.uid4-hero-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 3;
}
.uid4-hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(245,245,245,.4);
  border: 0; padding: 0; cursor: pointer;
}
.appad4-dot-active { background: var(--appad4-gold); }

/* ====================== MARQUEE STRIP ====================== */
.uid4-strip {
  display: flex;
  gap: 14px;
  margin: 12px 12px 0;
  padding: 9px 12px;
  background: linear-gradient(90deg, rgba(212,175,55,.15), rgba(233,30,99,.12));
  border: 1px solid var(--appad4-border);
  border-radius: 10px;
  font-size: 12.5px;
  overflow: hidden;
  white-space: nowrap;
}
.uid4-strip span { color: var(--appad4-gold-soft); font-weight: 600; }
.uid4-strip small { color: var(--appad4-muted); }

/* ====================== SECTION ====================== */
.uid4-section {
  margin: 18px 12px 0;
}
.uid4-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.uid4-section-head h3 {
  margin: 0;
  font-size: 17px;
  color: var(--appad4-gold);
  position: relative;
  padding-left: 12px;
}
.uid4-section-head h3::before {
  content: "";
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--appad4-magenta), var(--appad4-gold));
}
.uid4-section-head a { font-size: 12.5px; }

/* ====================== CATEGORY TABS ====================== */
.uid4-cats {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
}
.uid4-cats::-webkit-scrollbar { display: none; }
.uid4-cat-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--appad4-bg-card);
  border: 1px solid var(--appad4-border);
  color: var(--appad4-text);
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
}
.appad4-cat-tab-active {
  background: linear-gradient(135deg, var(--appad4-gold), var(--appad4-magenta));
  color: #0C0C0C;
  border-color: transparent;
  font-weight: 700;
}

/* ====================== GAME GRID ====================== */
.uid4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 360px) {
  .uid4-grid { gap: 10px; }
}
.uid4-game-tile {
  background: var(--appad4-bg-card);
  border: 1px solid var(--appad4-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column;
}
.uid4-game-tile:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(233,30,99,.25);
}
.uid4-game-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}
.uid4-game-tile figcaption {
  font-size: 10.5px;
  text-align: center;
  padding: 5px 4px;
  color: var(--appad4-text);
  background: #141414;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uid4-game-tile .uid4-hot {
  position: absolute; top: 5px; left: 5px;
  background: var(--appad4-magenta);
  color: #fff;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
}
.uid4-game-tile .uid4-play {
  position: absolute; right: 5px; bottom: 26px;
  width: 22px; height: 22px;
  background: rgba(0,0,0,.55);
  color: var(--appad4-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}

.uid4-more {
  display: block;
  margin: 16px auto 0;
  padding: 10px 22px;
  background: transparent;
  color: var(--appad4-gold);
  border: 1px solid var(--appad4-gold);
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 700;
}
.uid4-more:hover { background: rgba(212,175,55,.12); }

/* ====================== FEATURE CARDS ====================== */
.uid4-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.uid4-feature {
  background: linear-gradient(160deg, var(--appad4-bg-card), #141414);
  border: 1px solid var(--appad4-border);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}
.uid4-feature .uid4-ic {
  width: 44px; height: 44px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--appad4-magenta), var(--appad4-gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.uid4-feature b { display: block; color: var(--appad4-gold-soft); font-size: 13.5px; margin-bottom: 4px; }
.uid4-feature p { margin: 0; font-size: 12px; color: var(--appad4-muted); line-height: 1.5; }

/* ====================== SEO CONTENT ====================== */
.uid4-seo {
  margin: 20px 12px 0;
  padding: 16px;
  background: var(--appad4-bg-card);
  border: 1px solid var(--appad4-border);
  border-radius: 14px;
}
.uid4-seo h3 {
  margin: 0 0 10px;
  color: var(--appad4-gold);
  font-size: 16.5px;
}
.uid4-seo h4 {
  margin: 16px 0 6px;
  color: var(--appad4-blush);
  font-size: 14.5px;
}
.uid4-seo p {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--appad4-text);
  opacity: .92;
}
.uid4-seo ul { padding-left: 18px; margin: 0 0 10px; }
.uid4-seo li { font-size: 13px; margin-bottom: 4px; color: var(--appad4-text); opacity: .92; }
.uid4-seo a { color: var(--appad4-gold-soft); border-bottom: 1px dotted var(--appad4-gold); }

.uid4-cta-band {
  margin: 20px 12px 0;
  padding: 18px 16px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(135deg, rgba(233,30,99,.25), rgba(212,175,55,.22));
  border: 1px solid var(--appad4-gold);
}
.uid4-cta-band h3 { margin: 0 0 6px; color: var(--appad4-gold-soft); font-size: 18px; }
.uid4-cta-band p { margin: 0 0 12px; font-size: 13px; color: var(--appad4-text); opacity: .92; }
.uid4-cta-band button {
  border: 0;
  background: linear-gradient(135deg, var(--appad4-magenta), var(--appad4-gold));
  color: #1a0a10;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

/* ====================== FOOTER ====================== */
.uid4-footer {
  margin: 24px 12px 0;
  padding: 16px 4px 4px;
  border-top: 1px solid var(--appad4-border);
}
.uid4-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.uid4-footer h4 {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--appad4-gold);
}
.uid4-footer ul { list-style: none; margin: 0; padding: 0; }
.uid4-footer li { margin-bottom: 5px; }
.uid4-footer a { font-size: 12.5px; color: var(--appad4-text); opacity: .85; }
.uid4-footer a:hover { color: var(--appad4-gold-soft); }
.uid4-foot-note {
  margin-top: 14px;
  padding: 10px;
  background: rgba(233,30,99,.08);
  border-radius: 10px;
  font-size: 11.5px;
  color: var(--appad4-muted);
  line-height: 1.55;
}
.uid4-copy {
  margin-top: 10px;
  text-align: center;
  font-size: 11.5px;
  color: var(--appad4-muted);
}

/* ====================== BOTTOM NAV ====================== */
.uid4-bottom {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--appad4-max);
  background: linear-gradient(180deg, rgba(20,12,12,.98), #0C0C0C);
  border-top: 1px solid var(--appad4-gold);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 70;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.uid4-bottom a, .uid4-bottom button {
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  color: var(--appad4-muted);
  font-family: inherit;
  font-size: 10.5px;
  cursor: pointer;
  position: relative;
}
.uid4-bottom svg {
  width: 22px; height: 22px;
  fill: currentColor;
}
.uid4-bottom .uid4-nav-current {
  color: var(--appad4-gold);
}
.uid4-bottom .uid4-nav-current::after {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 2px;
  background: var(--appad4-gold);
  border-radius: 2px;
}
.uid4-bottom .uid4-nav-promo {
  color: var(--appad4-blush);
}
.uid4-bottom .uid4-nav-promo svg { filter: drop-shadow(0 0 6px rgba(255,182,193,.4)); }
.uid4-bottom .uid4-nav-center {
  transform: translateY(-8px);
}
.uid4-bottom .uid4-nav-center .uid4-center-orb {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--appad4-magenta), var(--appad4-gold));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(233,30,99,.45);
  border: 2px solid #0C0C0C;
}
.uid4-bottom .uid4-nav-center .uid4-center-orb svg { width: 20px; height: 20px; color: #1a0a10; fill: #1a0a10; }
.uid4-bottom .uid4-nav-center span { display: none; }

/* ====================== BACK TO TOP ====================== */
.uid4-top {
  position: fixed;
  right: 14px;
  bottom: 84px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--appad4-gold);
  color: #0C0C0C;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .15s ease;
  z-index: 65;
}
.appad4-top-show { opacity: .95; pointer-events: auto; }

/* ====================== TOAST ====================== */
.appad4-toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20,12,12,.95);
  color: var(--appad4-gold-soft);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--appad4-gold);
  font-size: 12.5px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.appad4-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ====================== PAGE PADDING ====================== */
.uid4-main {
  padding-bottom: 90px; /* room for bottom nav */
}

/* ====================== RESPONSIVE TWEAKS ====================== */
@media (min-width: 400px) {
  .uid4-grid { grid-template-columns: repeat(5, 1fr); }
  .uid4-hero-slide { min-height: 190px; }
  .uid4-hero-slide h2 { font-size: 23px; }
}

@media (min-width: 600px) {
  .uid4-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
