/* =========================================================
   UFAC4 — Bootstrap 5 reconstruction
   Custom theme layer (dark casino / orange accent)
   ========================================================= */
:root {
  --uf-dark: #0c0c0e;
  --uf-dark-2: #15151a;
  --uf-panel: #1c1d22;
  --uf-orange: #f7941d;
  --uf-orange-2: #ff6a00;
  --uf-red: #e1241b;
  --uf-line: #06c755;
  --uf-text-muted: #9aa0a6;
}

* { -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Kanit', 'Prompt', system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #f1f1f1;
  /* full-page dark/gold casino wallpaper, exactly like the original (fixed + cover) */
  background: #0c0c0e url('../img/wallpaper-min.jpg') center center / cover no-repeat fixed;
  padding-bottom: 70px;            /* room for fixed mobile bar */
}

a { text-decoration: none; }

/* translucent dark panel so text stays readable over the wallpaper */
.uf-panel-dark { background: rgba(0, 0, 0, .62); }
.uf-panel-light { background: #ffffff; color: #1d1d1f; }

/* ---------- Buttons ---------- */
.btn-uf-orange {
  background: linear-gradient(180deg, var(--uf-orange) 0%, var(--uf-orange-2) 100%);
  border: 0;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(247, 148, 29, .35);
}
.btn-uf-orange:hover { color: #fff; filter: brightness(1.07); }

.btn-uf-register {
  background: linear-gradient(180deg, #ff3b2f 0%, var(--uf-red) 100%);
  border: 0;
  color: #fff;
  font-weight: 600;
  position: relative;
  border-radius: 6px;
}
.btn-uf-register:hover { color: #fff; filter: brightness(1.08); }
.btn-uf-register .badge-new {
  position: absolute;
  top: -10px; right: -8px;
  background: #1aa544;
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 600;
}

.btn-line {
  background: var(--uf-line);
  border: 0;
  color: #fff;
  font-weight: 700;
}
.btn-line:hover { color: #fff; filter: brightness(1.05); }

/* ---------- Navbar ---------- */
.uf-navbar {
  background: var(--uf-dark);
  border-bottom: 2px solid rgba(247, 148, 29, .35);
}
.uf-navbar .navbar-brand img { height: 42px; }
.uf-navbar .nav-link {
  color: #f1f1f1 !important;
  font-weight: 500;
  margin: 0 .15rem;
  transition: color .15s;
}
.uf-navbar .nav-link:hover,
.uf-navbar .nav-link.active { color: var(--uf-orange) !important; }
.uf-navbar .dropdown-menu {
  background: var(--uf-dark-2);
  border: 1px solid rgba(255,255,255,.08);
}
.uf-navbar .dropdown-item { color: #e6e6e6; }
.uf-navbar .dropdown-item:hover { background: rgba(247,148,29,.15); color: var(--uf-orange); }

/* ---------- Hero ---------- */
.uf-hero { background: var(--uf-dark); }
.uf-hero .carousel-item img {
  width: 100%;
  object-fit: cover;
}
.uf-hero .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--uf-orange);
}

/* Floating side contact widgets */
.uf-floating {
  position: fixed;
  top: 120px;
  right: 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 110px;
}
.uf-floating .fw-card {
  background: var(--uf-dark-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px 0 0 8px;
  padding: 8px;
  text-align: center;
}
.uf-floating .fw-card img { width: 100%; border-radius: 4px; background:#fff; }
.uf-floating .fw-label {
  display: block;
  font-size: 11px;
  color: #fff;
  margin-top: 4px;
}
.uf-floating .fw-line  { background: var(--uf-line); border-color: var(--uf-line); }
.uf-floating .fw-line .fw-label,
.uf-floating .fw-tg .fw-label { color:#fff; }
.uf-floating .fw-tg { background:#229ed9; border-color:#229ed9; }
@media (max-width: 991px){ .uf-floating { display:none; } }

/* ---------- Login bar ---------- */
.uf-login {
  background: linear-gradient(90deg, #18191e 0%, #232429 100%);
  border: 1px solid rgba(247,148,29,.35);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.uf-login .login-title {
  color: var(--uf-orange);
  font-weight: 700;
}
.uf-login label { color: var(--uf-orange); font-size: .85rem; }
.uf-login .form-control {
  background: #fff; border: 0; border-radius: 6px;
}

/* ---------- Section helpers ---------- */
.uf-section-title {
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
  position: relative;
  display: inline-block;
}
.uf-section-title::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  margin: .5rem auto 0;
  background: linear-gradient(90deg, var(--uf-orange), var(--uf-orange-2));
  border-radius: 2px;
}
.uf-about p { color: #d7d7d7; line-height: 1.9; text-shadow: 0 1px 3px rgba(0,0,0,.5); }

/* ---------- Game grid ---------- */
.uf-game-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  background: var(--uf-dark-2);
}
.uf-game-card img { width: 100%; display: block; }
.uf-game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(247,148,29,.35);
}

/* ---------- Articles ---------- */
.uf-article-card {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
}
.uf-article-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,.15); }
.uf-article-card .ratio img { object-fit: cover; }
.uf-article-card .card-title { font-size: 1rem; font-weight: 600; color:#1d1d1f; }
.uf-article-card .card-title a { color: inherit; }
.uf-article-card .card-title a:hover { color: var(--uf-orange); }

/* ---------- Footer ---------- */
.uf-footer {
  background: var(--uf-dark);
  color: #c9c9cf;
}
.uf-footer p { line-height: 1.9; font-size: .9rem; }
.uf-footer .contact-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 30px;
  padding: 6px 16px; margin: 4px;
  color: #fff; font-weight: 500;
}
.uf-footer .badges img { height: 54px; margin: 6px; opacity:.9; }

/* ---------- Sticky bottom mobile bar ---------- */
.uf-mobilebar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1050;
  display: flex;
  background: linear-gradient(180deg, var(--uf-orange) 0%, var(--uf-orange-2) 100%);
  box-shadow: 0 -3px 14px rgba(0,0,0,.25);
}
.uf-mobilebar a {
  flex: 1 1 0;
  text-align: center;
  color: #fff;
  padding: 10px 4px 8px;
  font-size: .72rem;
  font-weight: 500;
  border-right: 1px solid rgba(255,255,255,.18);
}
.uf-mobilebar a:last-child { border-right: 0; }
.uf-mobilebar a i { display:block; font-size: 1.15rem; margin-bottom: 3px; }
.uf-mobilebar a.is-active { background: rgba(0,0,0,.18); }

/* download banner */
.uf-download-banner img { border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }

/* ==========================================================================
   PAGE-BUILDER BLOCKS (block_type 1-18) — เนื้อหา CMS กลางหน้า
   เดิม class พวกนี้ไม่มีนิยามใน neo → ใส่พื้นหลัง/กรอบให้ content อ่านง่ายขึ้น
   ========================================================================== */
.super-body { color: #e9eaee; }
.b-color { color: var(--uf-orange); font-weight: 700; }
.d-color { color: #d8dade; }

/* กล่องเนื้อหา (block_type 1,2,3,7,8) */
.v-content {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.25));
  border: 1px solid rgba(247,148,29,.25);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  line-height: 1.85;
}
.v-content img { border-radius: 10px; }
.v-content a { color: var(--uf-orange); }

/* การ์ด FAQ / content แบบมีพื้น */
.bg-faq {
  background: linear-gradient(180deg, var(--uf-panel), var(--uf-dark-2)) !important;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
}

/* FAQ (block_type 5) — แยกการ์ด Q/A ชัดเจน */
.fags h2 { color: var(--uf-orange); }
.fags .bg-faq { transition: transform .18s ease, border-color .2s ease; }
.fags .bg-faq:hover { transform: translateY(-3px); border-color: rgba(247,148,29,.55); }
.fags .bg-faq h3 {
  display: flex; align-items: flex-start; gap: 10px;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px dashed rgba(255,255,255,.15);
  color: var(--uf-orange); font-weight: 700;
}
.fags .bg-faq h3::before {
  content: "Q"; flex: 0 0 auto; display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(180deg, var(--uf-orange), var(--uf-orange-2));
  color: #fff; font-weight: 800;
}
.fags .bg-faq p { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: #d8dade; line-height: 1.8; }
.fags .bg-faq p::before {
  content: "A"; flex: 0 0 auto; display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--uf-dark); border: 1px solid var(--uf-orange);
  color: var(--uf-orange); font-weight: 800;
}

/* block ผลบอลสด / ผลหวย (ถ้ามีในหน้า) */
.livescore-block, .lotto-block, .football-block, .lottopage-block {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.28));
  border: 1px solid rgba(247,148,29,.25);
  border-radius: 14px; padding: 18px 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
