/* ==========================================================================
   THAbet Landing Page - Custom Stylesheet
   Rewritten from scratch. Uses CSS Variables, Flexbox, Grid.
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --cdn: https://www.cswb323.net;

  /* Colors */
  --color-header-bg: #0c1d3a;
  --color-header-top: #081428;
  --color-nav-bg: #ffffff;
  --color-nav-text: #222222;
  --color-nav-hover: #1987d2;
  --color-register: #3cb878;
  --color-register-hover: #2fa366;
  --color-login: #1987d2;
  --color-login-hover: #1470ad;
  --color-offer: #e91e8c;
  --color-footer-top: #2a2a2a;
  --color-footer-main: #0a0a0a;
  --color-footer-brands: #1a1a1a;
  --color-text-muted: #999999;
  --color-text-light: #cccccc;
  --color-yellow: #ffd700;
  --color-border: #e0e0e0;

  /* Layout */
  --container-max: 1400px;
  --header-height: 46px;
  --nav-height: 56px;
  --banner-height: 420px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.18);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.28);
  --transition: 0.25s ease;

  /* Typography */
  --font-family: Arial, "Microsoft YaHei", "Helvetica Neue", Helvetica, sans-serif;
  --font-size-base: 14px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-nav-text);
  background: #f0f0f0;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Top bar */
.header-top {
  background: linear-gradient(180deg, var(--color-header-top) 0%, var(--color-header-bg) 100%);
  height: var(--header-height);
}

.header-top__inner {
  display: inline-block;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Favorite button */
.btn-favorite {
  position: relative;
  width: 32px;
  height: 32px;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--transition);
}

.btn-favorite:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-favorite__icon {
  display: block;
  width: 20px;
  height: 20px;
  margin: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffd700'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.btn-favorite .tooltip {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.btn-favorite:hover .tooltip {
  opacity: 1;
}

/* Login form */
.login-form {
  display: -webkit-inline-box;
  float: inline-end;
  align-items: center;
  gap: 8px;
}

.btn-register {
  background: var(--color-register);
  color: #fff;
  padding: 6px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}

.btn-register:hover {
  background: var(--color-register-hover);
  transform: translateY(-1px);
}

.login-form__input {
  width: 130px;
  height: 32px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #2a5a9e;
  border-radius: var(--radius-sm);
  color: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.login-form__input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.login-form__input:focus {
  border-color: var(--color-login);
  box-shadow: 0 0 0 2px rgba(25, 135, 210, 0.3);
}

.login-form__password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.btn-forgot {
  position: absolute;
  right: 6px;
  width: 18px;
  height: 18px;
  background: var(--color-login);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.btn-forgot::after {
  content: "?";
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 100%;
  height: 100%;
}

.btn-forgot:hover {
  opacity: 1;
}

.login-form__input--pass {
  padding-right: 28px;
}

.btn-login {
  background: var(--color-login);
  color: #fff;
  padding: 6px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}

.btn-login:hover {
  background: var(--color-login-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   MAIN NAVIGATION
   ========================================================================== */

.main-nav {
  background: var(--color-nav-bg);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

.main-nav__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 8px;
  position: relative;
}

.main-nav__logo img {
  height: 38px;
  width: auto;
  flex-shrink: 0;
}

/* Hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-nav-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav list */
.nav-list {
  display: flex;
  align-items: center;
  flex: 1;
  height: 100%;
  margin-left: 12px;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: #ddd;
  margin: 0 2px;
  flex-shrink: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  height: 100%;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--color-nav-text);
  white-space: nowrap;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-item:hover > .nav-link {
  color: var(--color-nav-hover);
}

.nav-link--offer {
  color: var(--color-offer);
}

.nav-link--offer:hover {
  color: #c4157a;
}

.nav-link--app::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 20px;
  background: url("https://www.cswb323.net/images/main/icon-chrome.png") center/contain no-repeat;
  margin-right: 2px;
}

.nav-link__fire {
  width: 18px;
  height: 18px;
}

/* World Cup banner */
.wc-banner {
  flex-shrink: 0;
  margin-left: auto;
  transition: transform var(--transition);
}

.wc-banner:hover {
  transform: scale(1.05);
}

.wc-banner img {
  height: 44px;
  width: auto;
}

/* Mega menu dropdown */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 480px;
  background: rgba(0, 0, 0, 0.92);
  border-radius: var(--radius-md);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 200;
  box-shadow: var(--shadow-card);
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mega-menu__grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.mega-menu__grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.mega-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}

.mega-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.mega-card img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

.mega-card span {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

.mega-card--featured {
  position: relative;
}

.mega-card--featured::before {
  content: "HOT";
  position: absolute;
  top: 4px;
  right: 4px;
  background: #e53935;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */

.hero {
  position: relative;
  background: #000;
}

.hero-swiper {
  width: 100%;
  height: var(--banner-height);
}

.hero-swiper .swiper-slide {
  overflow: hidden;
}

.hero-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Swiper controls */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background var(--transition);
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  background: rgba(25, 135, 210, 0.8);
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: 18px;
  font-weight: 700;
}

.hero-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
  width: 10px;
  height: 10px;
  transition: transform var(--transition), background var(--transition);
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--color-login);
  transform: scale(1.3);
}

/* Ticker */
.ticker {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #0c1d3a 0%, #152a50 100%);
  height: 36px;
  overflow: hidden;
}

.ticker__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: url("https://www.cswb323.net/images/autolines/icon_light.png") center/20px no-repeat;
  margin: 0 8px;
}

.ticker__track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.ticker__text {
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  animation: ticker-scroll 25s linear infinite;
  padding-left: 100%;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ==========================================================================
   FEATURED CARDS
   ========================================================================== */

.cards-section {
  padding: 24px 0;
  background: #f5f5f5;
}

.cards-section__inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pic-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.pic-card {
  position: relative;
  display: block;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.pic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.pic-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 50%);
  pointer-events: none;
}

.pic-card--lottery {
  background-image: url("https://www.cswb323.net/images/main/yn/pic_lottery_wide.png");
}

.pic-card--live {
  background-image: url("https://www.cswb323.net/images/main/yn/coolin_VN.gif");
}

.pic-card--laliga {
  background-image: url("https://www.cswb323.net/images/autolines/cn/PC_bgSport.jpg");
}

.pic-card--movie {
  background-image: url("https://www.cswb323.net/images/main/yn/img_liveVideoT.png");
}

.pic-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.pic-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e53935;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

/* LaLiga side badge */
.laliga-badge {
  flex-shrink: 0;
  width: 130px;
  align-self: center;
  transition: transform var(--transition);
}

.laliga-badge:hover {
  transform: scale(1.04);
}

.laliga-badge img {
  width: 100%;
}

/* ==========================================================================
   QUICK LINKS
   ========================================================================== */

.quick-links {
  padding: 20px 0 32px;
  background: #f5f5f5;
}

.quick-links__grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100px;
  transition: transform var(--transition);
}

.quick-link::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #fff;
  background-size: 40px;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow var(--transition), transform var(--transition);
}

.quick-link:hover {
  transform: translateY(-4px);
}

.quick-link:hover::before {
  box-shadow: var(--shadow-card);
  transform: scale(1.08);
}

.quick-link span {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.quick-link--support::before { background-image: url("https://www.cswb323.net/images/i00.png"); }
.quick-link--help::before { background-image: url("https://www.cswb323.net/images/i01.png"); }
.quick-link--active::before { background-image: url("https://www.cswb323.net/images/i02.png"); }
.quick-link--complaint::before { background-image: url("https://www.cswb323.net/images/i03.png"); }
.quick-link--forum::before { background-image: url("https://www.cswb323.net/images/i04.png"); }

/* ==========================================================================
   FLOATING SIDEBAR
   ========================================================================== */

.float-bar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  transition: transform var(--transition);
}

.float-bar.is-hidden {
  transform: translateY(-50%) translateX(60px);
  opacity: 0.6;
}

.float-bar__list {
  display: flex;
  flex-direction: column;
}

.float-btn {
  position: relative;
  width: 52px;
  height: 52px;
  background: var(--color-login);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), width var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.float-btn:first-child {
  border-radius: var(--radius-md) 0 0 0;
}

.float-btn:last-child {
  border-radius: 0 0 0 var(--radius-md);
  border-bottom: none;
}

.float-btn:hover {
  background: var(--color-login-hover);
  width: 58px;
}

.float-btn__label {
  position: absolute;
  right: calc(100% + 8px);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.float-btn:hover .float-btn__label {
  opacity: 1;
}

/* Float button icons via inline SVG backgrounds */
.float-btn--messenger::after,
.float-btn--telegram::after,
.float-btn--line::after,
.float-btn--viber::after,
.float-btn--phone::after,
.float-btn--message::after,
.float-btn--complaint::after,
.float-btn--top::after {
  content: "";
  width: 26px;
  height: 26px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.float-btn--messenger::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.36 2 2 6.13 2 11c0 2.91 1.46 5.51 3.74 7.17V22l3.42-1.88c.91.25 1.88.39 2.84.39 5.64 0 10-4.13 10-9.25S17.64 2 12 2zm1 11.5h-2v-2h2v2zm0-3h-2V7h2v3.5z'/%3E%3C/svg%3E");
}

.float-btn--telegram::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z'/%3E%3C/svg%3E");
}

.float-btn--line::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19.365 9.863c.349 0 .63.285.63.631 0 .345-.281.63-.63.63H17.61v1.125h1.755c.349 0 .63.283.63.63 0 .344-.281.629-.63.629h-2.386c-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63h2.386c.346 0 .627.285.627.63 0 .349-.281.63-.63.63H17.61v1.125h1.755zm-3.855 3.016c0 .27-.174.51-.432.596-.064.021-.133.031-.199.031-.211 0-.391-.09-.51-.25l-2.443-3.317v2.94c0 .344-.279.629-.631.629-.346 0-.626-.285-.626-.629V8.108c0-.27.173-.51.43-.595.06-.023.136-.033.194-.033.195 0 .375.104.495.254l2.462 3.33V8.108c0-.345.282-.63.63-.63.345 0 .63.285.63.63v4.771zm-5.741 0c0 .344-.282.629-.631.629-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63.346 0 .628.285.628.63v4.771zm-2.466.629H4.917c-.345 0-.63-.285-.63-.629V8.108c0-.345.285-.63.63-.63.348 0 .63.285.63.63v4.141h1.756c.348 0 .629.283.629.63 0 .344-.282.629-.629.629M24 10.314C24 4.943 18.615.572 12 .572S0 4.943 0 10.314c0 4.811 4.27 8.842 10.035 9.608.391.082.923.258 1.058.59.12.301.079.766.038 1.08l-.164 1.02c-.045.301-.24 1.186 1.049.645 1.291-.539 6.916-4.078 9.436-6.975C23.176 14.393 24 12.458 24 10.314'/%3E%3C/svg%3E");
}

.float-btn--viber::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M11.4 0C9.473.028 5.333.344 3.02 2.467 1.302 4.187.696 6.7.633 9.817.57 12.933.488 18.776 5.4 20.147v2.52s-.039.977.61 1.177c.777.242 1.234-.5 1.974-1.303.405-.455.966-1.077 1.39-1.565 3.83.32 6.776-1.411 7.11-1.79 2.307-2.732 3.426-6.138 3.363-9.75-.064-3.612-1.183-7.018-3.49-9.75C15.133.344 10.993.028 9.067 0h2.333z'/%3E%3C/svg%3E");
}

.float-btn--phone::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

.float-btn--message::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z'/%3E%3C/svg%3E");
}

.float-btn--complaint::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E");
}

.float-btn--top {
  background: #333;
}

.float-btn--top:hover {
  background: #555;
}

.float-btn--top::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E");
  animation: float-bounce 2s ease-in-out infinite;
}

@keyframes float-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--color-footer-main);
  color: var(--color-text-light);
  margin-top: 0;
}

.footer-top {
  background: var(--color-footer-top);
  padding: 12px 0;
  border-bottom: 1px solid #3a3a3a;
}

.footer-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.footer-links a {
  color: var(--color-text-light);
  font-size: 13px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-links__sep {
  color: #555;
  font-size: 12px;
}

.footer-links__yellow a,
a.footer-links__yellow {
  color: var(--color-yellow);
}

.footer-links__phone {
  font-size: 13px;
}

.sitemap-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.sitemap-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sitemap-toggle__arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--color-login);
  transition: transform var(--transition);
}

.sitemap-toggle[aria-expanded="true"] .sitemap-toggle__arrow {
  transform: rotate(180deg);
}

/* Footer main grid */
.footer-main {
  padding: 28px 0;
  max-height: 600px;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.footer-main.is-collapsed {
  max-height: 0;
  padding: 0;
}

.footer-main__inner {
  display: flex;
  gap: 32px;
}

.guild-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px 16px;
  flex: 1;
}

.guild-col__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #333;
}

.guild-col__icon {
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.guild-col ul li {
  margin-bottom: 4px;
}

.guild-col ul a {
  font-size: 12px;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.guild-col ul a:hover {
  color: #fff;
}

/* Footer icons - simplified colored dots as fallback */
.guild-col__icon--sport { background: #4caf50; border-radius: 50%; width: 8px; height: 8px; }
.guild-col__icon--casino { background: #e91e63; border-radius: 50%; width: 8px; height: 8px; }
.guild-col__icon--games { background: #ff9800; border-radius: 50%; width: 8px; height: 8px; }
.guild-col__icon--lotto { background: #9c27b0; border-radius: 50%; width: 8px; height: 8px; }
.guild-col__icon--esport { background: #2196f3; border-radius: 50%; width: 8px; height: 8px; }
.guild-col__icon--fish { background: #00bcd4; border-radius: 50%; width: 8px; height: 8px; }
.guild-col__icon--chess { background: #795548; border-radius: 50%; width: 8px; height: 8px; }
.guild-col__icon--chicken { background: #f44336; border-radius: 50%; width: 8px; height: 8px; }
.guild-col__icon--help { background: #607d8b; border-radius: 50%; width: 8px; height: 8px; }
.guild-col__icon--mobile { background: #fff; border-radius: 3px; width: 14px; height: 20px; }

/* Mobile QR section */
.footer-mobile {
  flex-shrink: 0;
  width: 160px;
  text-align: center;
}

.footer-mobile__qr {
  background: #fff;
  padding: 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 12px;
}

.footer-mobile__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: #fff;
  margin-bottom: 8px;
}

.footer-mobile__desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Provider logos */
.footer-brands {
  background: var(--color-footer-brands);
  padding: 16px 0;
  border-top: 1px solid #2a2a2a;
}

.brand-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.brand-logos img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.5);
  opacity: 0.7;
  transition: filter var(--transition), opacity var(--transition);
}

.brand-logos img:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

.footer-copy {
  background: #000;
  padding: 12px 0;
  text-align: center;
}

.footer-copy p {
  font-size: 12px;
  color: #666;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* 1600px */
@media (max-width: 1600px) {
  :root {
    --banner-height: 380px;
  }

  .nav-link {
    padding: 0 8px;
    font-size: 12px;
  }
}

/* 1440px */
@media (max-width: 1440px) {
  :root {
    --container-max: 1200px;
    --banner-height: 340px;
  }

  .pic-card {
    height: 180px;
  }

  .laliga-badge {
    width: 110px;
  }
}

/* 1366px */
@media (max-width: 1366px) {
  .guild-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .login-form__input {
    width: 110px;
  }
}

/* Laptop / Tablet */
@media (max-width: 1024px) {
  :root {
    --banner-height: 280px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    height: auto;
    background: #fff;
    box-shadow: var(--shadow-card);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    margin-left: 0;
  }

  .nav-list.is-open {
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav-item {
    width: 100%;
    height: auto;
    flex-direction: column;
    border-bottom: 1px solid #eee;
  }

  .nav-link {
    width: 100%;
    padding: 14px 16px;
    height: auto;
  }

  .nav-divider {
    display: none;
  }

  .mega-menu {
    position: static;
    transform: none;
    min-width: 100%;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    padding: 8px;
  }

  .nav-item.is-expanded .mega-menu {
    display: block;
  }

  .wc-banner {
    display: none;
  }

  .cards-section__inner {
    flex-direction: column;
    align-items: center;
  }

  .pic-menu {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .laliga-badge {
    width: 140px;
  }

  .guild-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-main__inner {
    flex-direction: column;
    align-items: center;
  }

  .footer-mobile {
    width: 100%;
  }

  .float-bar {
    top: auto;
    bottom: 80px;
    transform: none;
  }

  .login-form__input {
    width: 100px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: auto;
    --banner-height: 220px;
  }

  .header-top__inner {
    flex-direction: column;
    padding: 8px 0;
    gap: 8px;
  }

  .login-form {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .login-form__input {
    width: calc(50% - 50px);
    flex: 1;
    min-width: 100px;
  }

  .main-nav {
    height: auto;
    min-height: var(--nav-height);
  }

  .main-nav__inner {
    flex-wrap: wrap;
    padding: 8px 0;
  }

  .pic-menu {
    grid-template-columns: 1fr;
  }

  .pic-card {
    height: 160px;
  }

  .quick-links__grid {
    gap: 20px;
  }

  .guild-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-logos {
    gap: 16px;
  }

  .brand-logos img {
    height: 24px;
  }

  .float-btn {
    width: 44px;
    height: 44px;
  }

  .float-btn:hover {
    width: 48px;
  }
}

/* Small mobile 320px */
@media (max-width: 480px) {
  :root {
    --banner-height: 180px;
  }

  .btn-register,
  .btn-login {
    padding: 6px 12px;
    font-size: 12px;
  }

  .login-form__input {
    width: 100%;
    height: 30px;
  }

  .login-form__password-wrap {
    width: 100%;
  }

  .quick-link {
    width: 80px;
  }

  .quick-link::before {
    width: 52px;
    height: 52px;
    background-size: 32px;
  }

  .guild-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .footer-links {
    justify-content: center;
  }

  .float-bar {
    bottom: 16px;
    right: 4px;
  }

  .float-btn__label {
    display: none;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 8px;
  }

  .pic-card__label {
    font-size: 12px;
  }
}

/* Sticky header shadow on scroll */
.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
