/*!
 * melbetaffiliatelogin.homes - layout styles
 * All custom class names use the uid9- prefix.
 * Mobile-first canvas: 320-430px viewports. Dark palette:
 * #262626 base | #FFDFBA / #FFF8DC text | #E91E63 accent | #FFE135 highlight
 * Code comments in English.
 */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --uid9-bg: #262626;
  --uid9-bg-2: #2f2a23;
  --uid9-bg-3: #1c1916;
  --uid9-card: #322c25;
  --uid9-text: #FFF8DC;
  --uid9-text-2: #FFDFBA;
  --uid9-muted: #c9b79a;
  --uid9-accent: #E91E63;
  --uid9-accent-2: #ff5a8a;
  --uid9-gold: #FFE135;
  --uid9-gold-2: #ffd24a;
  --uid9-border: rgba(255, 223, 186, 0.14);
  --uid9-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --uid9-radius: 14px;
  --uid9-radius-sm: 10px;
  --uid9-header-h: 56px;
  --uid9-nav-h: 64px;
}

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: radial-gradient(circle at 20% 0%, #3a3328 0%, var(--uid9-bg) 55%);
  color: var(--uid9-text);
  line-height: 1.55;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a { color: var(--uid9-gold); text-decoration: none; }
a:hover, a:focus { color: var(--uid9-accent-2); }

h1, h2, h3, h4 { margin: 0 0 8px; line-height: 1.25; color: var(--uid9-text-2); font-weight: 700; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
p { margin: 0 0 12px; color: var(--uid9-text); }

/* Center the mobile canvas on wider screens */
.uid9-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--uid9-bg);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* ---------- Header ---------- */
.uid9-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--uid9-header-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(28, 25, 22, 0.98), rgba(38, 34, 30, 0.95));
  border-bottom: 1px solid var(--uid9-border);
  backdrop-filter: blur(6px);
}

.uid9-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.uid9-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--uid9-gold);
  flex: none;
  background: #fff;
}
.uid9-brand-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--uid9-text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}
.uid9-brand-name span { color: var(--uid9-gold); }

.uid9-header-actions { display: flex; align-items: center; gap: 6px; flex: none; }

.uid9-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.uid9-btn:active { transform: scale(0.96); }

.uid9-btn-login {
  background: transparent;
  color: var(--uid9-text-2);
  border: 1px solid var(--uid9-border);
}
.uid9-btn-login:hover { color: var(--uid9-gold); border-color: var(--uid9-gold); }

.uid9-btn-register {
  background: linear-gradient(135deg, var(--uid9-accent), var(--uid9-accent-2));
  color: #fff;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.45);
}
.uid9-btn-register:hover { color: #fff; box-shadow: 0 6px 16px rgba(233, 30, 99, 0.6); }

.uid9-menu-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--uid9-border);
  color: var(--uid9-text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
.uid9-menu-btn:hover, .uid9-menu-btn-active { color: var(--uid9-gold); border-color: var(--uid9-gold); }
.uid9-menu-btn svg { width: 20px; height: 20px; }

/* ---------- Mobile Menu (slide-down) ---------- */
.uid9-mobile-menu {
  position: fixed;
  top: var(--uid9-header-h);
  left: 50%;
  transform: translate(-50%, -12px);
  width: 100%;
  max-width: 480px;
  background: var(--uid9-bg-2);
  border-bottom: 1px solid var(--uid9-border);
  padding: 12px 14px 16px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  box-shadow: var(--uid9-shadow);
  max-height: calc(100vh - var(--uid9-header-h));
  overflow-y: auto;
}
.uid9-mobile-menu.uid9-menu-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.uid9-mobile-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--uid9-text);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--uid9-border);
}
.uid9-mobile-menu a:hover { background: rgba(255, 225, 53, 0.08); color: var(--uid9-gold); }
.uid9-mobile-menu .uid9-menu-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--uid9-muted);
  padding: 8px 12px 4px;
  font-weight: 700;
}

/* ---------- Main ---------- */
.uid9-main {
  padding-bottom: calc(var(--uid9-nav-h) + 24px);
}

.uid9-section {
  padding: 22px 14px 8px;
}

.uid9-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.uid9-section-head h2 { margin: 0; }
.uid9-section-head .uid9-more { font-size: 12px; color: var(--uid9-gold); font-weight: 600; }

/* ---------- Hero / Carousel ---------- */
.uid9-hero {
  position: relative;
  padding: 16px 14px 0;
}
.uid9-hero-track {
  position: relative;
  border-radius: var(--uid9-radius);
  overflow: hidden;
  background: var(--uid9-bg-3);
  box-shadow: var(--uid9-shadow);
}
.uid9-hero-slide {
  display: none;
  position: relative;
}
.uid9-hero-slide.uid9-hero-slide-active { display: block; }
.uid9-hero-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.uid9-hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  color: var(--uid9-text);
}
.uid9-hero-caption h2 {
  color: var(--uid9-gold);
  font-size: 18px;
  margin-bottom: 4px;
}
.uid9-hero-caption p { font-size: 12px; margin: 0; color: var(--uid9-text-2); }
.uid9-hero-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--uid9-accent), var(--uid9-accent-2));
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.uid9-hero-cta:hover { color: #fff; opacity: 0.92; }

.uid9-hero-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 4px;
}
.uid9-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 223, 186, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
}
.uid9-hero-dot.uid9-hero-dot-active { background: var(--uid9-gold); transform: scale(1.2); }

/* ---------- Category Tabs ---------- */
.uid9-cat-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 14px 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.uid9-cat-tabs::-webkit-scrollbar { display: none; }
.uid9-cat-tab {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--uid9-card);
  color: var(--uid9-text-2);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--uid9-border);
  cursor: pointer;
  white-space: nowrap;
}
.uid9-cat-tab.uid9-cat-tab-active {
  background: linear-gradient(135deg, var(--uid9-accent), var(--uid9-accent-2));
  color: #fff;
  border-color: transparent;
}

/* ---------- Game Grid ---------- */
.uid9-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 4px 14px 8px;
}
@media (min-width: 360px) {
  .uid9-games-grid { gap: 10px; }
}
@media (min-width: 410px) {
  .uid9-games-grid { grid-template-columns: repeat(5, 1fr); }
}

.uid9-game-card {
  background: var(--uid9-card);
  border-radius: var(--uid9-radius-sm);
  overflow: hidden;
  border: 1px solid var(--uid9-border);
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.uid9-game-card:active { transform: scale(0.97); }
.uid9-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #1a1714;
}
.uid9-game-name {
  font-size: 11px;
  text-align: center;
  padding: 4px 2px 6px;
  color: var(--uid9-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.uid9-game-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--uid9-gold);
  color: #1c1916;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}
.uid9-game-badge.hot { background: var(--uid9-accent); color: #fff; }

/* Horizontal promo strip */
.uid9-strip {
  display: flex;
  gap: 10px;
  padding: 12px 14px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.uid9-strip::-webkit-scrollbar { display: none; }
.uid9-strip-item {
  flex: none;
  width: 220px;
  background: var(--uid9-card);
  border: 1px solid var(--uid9-border);
  border-radius: var(--uid9-radius-sm);
  overflow: hidden;
}
.uid9-strip-item img { width: 100%; height: 110px; object-fit: cover; }
.uid9-strip-item .uid9-strip-body { padding: 8px 10px 10px; }
.uid9-strip-item h3 { font-size: 14px; margin-bottom: 2px; }
.uid9-strip-item p { font-size: 12px; color: var(--uid9-muted); margin: 0; }

/* ---------- Promo Banner / CTA ---------- */
.uid9-promo-banner {
  margin: 18px 14px 8px;
  padding: 18px 16px;
  border-radius: var(--uid9-radius);
  background: linear-gradient(135deg, #4a1430, var(--uid9-accent));
  color: #fff;
  text-align: center;
  box-shadow: var(--uid9-shadow);
}
.uid9-promo-banner h2 { color: var(--uid9-gold); font-size: 20px; margin-bottom: 6px; }
.uid9-promo-banner p { color: #ffe9c7; font-size: 13px; margin-bottom: 12px; }
.uid9-promo-cta {
  display: inline-block;
  padding: 10px 24px;
  background: var(--uid9-gold);
  color: #1c1916;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}
.uid9-promo-cta:hover { color: #1c1916; opacity: 0.94; }

/* ---------- Info / SEO blocks ---------- */
.uid9-info-card {
  background: var(--uid9-bg-2);
  border: 1px solid var(--uid9-border);
  border-radius: var(--uid9-radius);
  padding: 16px;
  margin: 8px 14px 14px;
}
.uid9-info-card h2 { color: var(--uid9-gold); font-size: 18px; }
.uid9-info-card h3 { color: var(--uid9-text-2); font-size: 15px; margin-top: 10px; }
.uid9-info-card ul { padding-left: 20px; margin: 8px 0; color: var(--uid9-text); }
.uid9-info-card li { margin-bottom: 6px; font-size: 13.5px; }
.uid9-info-card p { font-size: 13.5px; color: var(--uid9-text); }
.uid9-pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.uid9-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 225, 53, 0.12);
  color: var(--uid9-gold);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 225, 53, 0.3);
}

/* ---------- Steps ---------- */
.uid9-steps { counter-reset: step; padding: 0; list-style: none; margin: 0; }
.uid9-steps li {
  position: relative;
  padding: 8px 8px 8px 40px;
  margin-bottom: 8px;
  background: var(--uid9-card);
  border-radius: var(--uid9-radius-sm);
  border: 1px solid var(--uid9-border);
  font-size: 13.5px;
  counter-increment: step;
}
.uid9-steps li::before {
  content: counter(step);
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--uid9-accent), var(--uid9-accent-2));
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- FAQ ---------- */
.uid9-faq details {
  background: var(--uid9-card);
  border: 1px solid var(--uid9-border);
  border-radius: var(--uid9-radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.uid9-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--uid9-text-2);
  font-size: 14px;
  list-style: none;
}
.uid9-faq summary::-webkit-details-marker { display: none; }
.uid9-faq summary::after {
  content: "+";
  float: right;
  color: var(--uid9-gold);
  font-size: 18px;
  line-height: 1;
}
.uid9-faq details[open] summary::after { content: "−"; }
.uid9-faq p { font-size: 13px; margin: 8px 0 0; color: var(--uid9-text); }

/* ---------- Footer ---------- */
.uid9-footer {
  background: var(--uid9-bg-3);
  border-top: 1px solid var(--uid9-border);
  padding: 22px 14px 16px;
  margin-top: 8px;
}
.uid9-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.uid9-footer h4 {
  color: var(--uid9-gold);
  font-size: 13px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.uid9-footer ul { list-style: none; padding: 0; margin: 0; }
.uid9-footer li { margin-bottom: 6px; }
.uid9-footer a { color: var(--uid9-text-2); font-size: 12.5px; }
.uid9-footer a:hover { color: var(--uid9-gold); }
.uid9-footer p { font-size: 12px; color: var(--uid9-muted); margin: 8px 0 4px; }
.uid9-footer-bottom {
  border-top: 1px solid var(--uid9-border);
  margin-top: 14px;
  padding-top: 12px;
  font-size: 11.5px;
  color: var(--uid9-muted);
  text-align: center;
}
.uid9-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.uid9-footer-brand img { width: 30px; height: 30px; border-radius: 6px; }
.uid9-footer-brand strong { color: var(--uid9-gold); font-size: 14px; }

/* ---------- Bottom Navigation ---------- */
.uid9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--uid9-nav-h);
  background: linear-gradient(180deg, rgba(38, 34, 30, 0.98), rgba(28, 25, 22, 0.99));
  border-top: 1px solid var(--uid9-border);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  z-index: 95;
  padding: 4px 0 calc(env(safe-area-inset-bottom, 0px) + 4px);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.4);
}
.uid9-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--uid9-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
  position: relative;
  transition: color .15s ease, transform .15s ease;
}
.uid9-nav-btn:hover { color: var(--uid9-text-2); }
.uid9-nav-btn svg { width: 22px; height: 22px; }
.uid9-nav-btn.uid9-nav-btn-active { color: var(--uid9-gold); }
.uid9-nav-btn.uid9-nav-btn-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--uid9-gold);
}
.uid9-nav-promo {
  color: #fff;
  background: linear-gradient(135deg, var(--uid9-accent), var(--uid9-accent-2));
  margin: 2px 4px;
  border-radius: 12px;
  font-weight: 800;
}
.uid9-nav-promo svg { width: 20px; height: 20px; }
.uid9-nav-promo:hover { color: #fff; }

/* ---------- Utilities ---------- */
.uid9-empty {
  text-align: center;
  padding: 24px;
  color: var(--uid9-muted);
  font-size: 13px;
  display: none;
}
.uid9-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.uid9-hero-cta,
.uid9-promo-cta { border: 0; cursor: pointer; font-family: inherit; min-height: 44px; }
.uid9-info-card button.uid9-promo-cta { padding: 8px 12px; font-size: 12px; border-radius: 4px; margin: 2px; }
.uid9-bottom-nav a { text-decoration: none; }
.uid9-bottom-nav .uid9-nav-btn { min-height: 44px; }
.uid9-info-card a { overflow-wrap: anywhere; }
.uid9-back-top {
  position: fixed;
  right: 12px;
  bottom: calc(var(--uid9-nav-h) + 14px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--uid9-gold);
  color: #1c1916;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  box-shadow: var(--uid9-shadow);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}
