:root {
  --red: #c20000;
  --red-bright: #FF0402;
  --red-gradient: linear-gradient(165.34deg, #d70404 -17.16%, #7a000c 91.36%);
  --purple: #49009c;
  --gold: #e4d281;
  --gold-light: #ffda62;
  --dark: #292929;
  --card-bg: #450000;
  --navbar-bg: #ffffff;
}

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

html, body {
  font-family: 'Kanit', sans-serif;
  background-color: var(--dark);
  color: #fff;
}

/* ===== NAVBAR ===== */
.navbar-custom {
  background: var(--navbar-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  padding: 0.5rem 0;
}
.logo-head { width: 200px; }
.btn-login {
  background: #444;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}
.btn-login:hover { background: #555; color: #fff; }

.btn-register {
  background: var(--red-gradient);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
}
.btn-register:hover { filter: brightness(1.15); color: #fff; }

.btn-deposit {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
}
.btn-deposit:hover { filter: brightness(1.15); color: #fff; }

.btn-withdraw {
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
}
.btn-withdraw:hover { filter: brightness(1.1); color: #000; }

.btn-user-dropdown {
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
}
.btn-user-dropdown:hover { filter: brightness(1.1); color: #000; }
.btn-user-dropdown::after { display: none; }

.btn-login-submit {
  background: var(--red-gradient);
  border: none;
}
.btn-login-submit:hover { filter: brightness(1.15); }

/* Hamburger */
.menu_icon {
  width: 30px; height: 20px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
}
.menu_icon span {
  position: absolute;
  display: block;
  height: 4px;
  width: 28px;
  border-radius: 10px;
  background-color: #222;
  transition: all 200ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
span.one { top: 0px; width: 22px; }
span.two { top: 9px; width: 28px; }
span.three { top: 18px; width: 22px; }
.navbar-toggler { border: none !important; outline: none !important; box-shadow: none !important; }

/* ===== OVERLAY MENU ===== */
.overlay {
  height: 100%; width: 0;
  position: fixed; z-index: 3000;
  top: 0; left: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background-color: rgba(17, 25, 40, 0.85);
  overflow-x: hidden;
  transition: 0.5s;
}
.overlay.open { width: 100%; }
.overlay-content {
  position: relative;
  top: 15%;
  width: 100%;
  text-align: center;
}
.overlay a {
  padding: 12px 0;
  text-decoration: none;
  font-size: 24px;
  color: #ccc;
  display: block;
  transition: 0.3s;
}
.overlay a:hover { color: #fff; }
.overlay .closebtn {
  position: absolute;
  top: 20px; right: 45px;
  font-size: 60px;
  color: #fff;
  cursor: pointer;
}
.logo-head-nav { width: 180px; }

/* ===== HOMEPAGE WHITE MODE ===== */
body.homepage {
  background-color: #fff;
  color: #222;
}
body.homepage .match-section h2,
body.homepage .game-categories span,
body.homepage .game-categories h2,
body.homepage .refresh-btn {
  color: #222;
}
body.homepage .refresh-btn:hover {
  color: #000;
}
body.homepage .hero-section { margin-top: 76px; }

/* ===== HERO BANNER ===== */
.hero-section { margin-top: 76px; }
.carousel-item img { width: 100%; min-height: 200px; max-height: 500px; object-fit: cover; }

/* ===== MATCH CARDS ===== */
.match-section { padding: 1.5rem 0; }
.refresh-btn { font-size: 0.8rem; cursor: pointer; color: #aaa; }
.refresh-btn:hover { color: #fff; }

.match-root-bg {
  height: 220px;
  background: linear-gradient(90deg, rgba(36,0,0,0.4) -4.71%, rgba(250,12,12,0.66) 26.71%, rgba(36,0,0,0) 100%);
  border-radius: 0.5rem;
  padding: 4px;
}
.match-card-inner {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 0.5rem;
  background-color: var(--card-bg);
  overflow: hidden;
}
.match-glow {
  position: absolute;
  top: 30%; left: -20%;
  width: 480px; height: 480px;
  background: radial-gradient(50% 50% at 50% 50%, rgb(230,4,4) 0%, rgba(57,0,0,0) 100%);
}
.match-content-1 {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: url('../img/live/contact_0.png') center center / cover no-repeat;
}

.match-content-2 {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem;
	background: url('../img/live/deposit.png') center center / cover no-repeat;
}

.match-content-3 {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem;
	background: url('../img/live/withdraw.png') center center / cover no-repeat;
}

.match-content-4 {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem;
	background: url('../img/live/register.png') center center / cover no-repeat;
}
.league-info { font-size: 13px; line-height: 1.2; }
.live-badge {
  background-color: var(--red-bright);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
}
.match-time { font-size: 12px; white-space: nowrap; }
.team-logo-wrap {
  width: 40px; height: 40px;
  border-radius: 50%;
  background-color: rgba(142,180,223,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-logo-wrap img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.team-name { font-size: 0.875rem; font-weight: 600; text-align: center; }
.vs-text { font-weight: 700; font-size: 0.875rem; }
.score-text { font-size: 0.85rem; }
.btn-bet {
  width: 100%; height: 32px;
  font-size: 0.75rem; font-weight: 600;
  border-radius: 0.25rem;
  background: var(--red-gradient);
  box-shadow: 0 0 7px rgb(128,0,13);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.2s;
}
.btn-bet:hover { filter: brightness(1.15); }

/* Owl nav */
.owl-prev, .owl-next {
  width: 40px !important; height: 40px !important;
  background: var(--red) !important;
  color: #fff !important;
  border-radius: 30rem !important;
  box-shadow: -1px -1px 5px 0px rgba(0,0,0,0.3);
  position: absolute; top: 50%;
  transform: translateY(-50%) !important;
}
.owl-prev { left: -15px; }
.owl-next { right: -15px; }
.owl-prev span, .owl-next span { font-size: 26px; color: #fff; }

/* ===== GAME CATEGORIES ===== */
.game-categories { padding: 2rem 0; }
.game-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}
.game-icon {
  width: 100px; height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  transition: 0.3s;
  filter: grayscale(0.25) opacity(0.82);
}
.game-icon.active, .game-icon-wrap:hover .game-icon {
  filter: none;
  transform: scale(1.08);
}
.game-icon-wrap span { margin-top: 0.5rem; font-size: 0.9rem; }

/* ===== PROMOTION ===== */
.promo-section {
  background: #0d0d2b;
  padding: 2.5rem 0;
}
.promo-section h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 1.5rem; }
.promo-section .card { transition: transform 0.3s; }
.promo-section .card:hover { transform: translateY(-5px); }

/* ===== PARTNERS ===== */
.partner-section {
  background: url('../img/bg-promotion.png') center top / cover;
  padding: 1.5rem 0;
}
.partner-list {
  list-style: none;
  padding: 0;
  text-align: center;
  margin: 0;
}
.partner-list li {
  display: inline-block;
  width: 8%;
  padding: 0.5rem;
  vertical-align: middle;
}
.partner-list li img { max-width: 100%; }

/* ===== FOOTER ===== */
.footer-custom {
  background: linear-gradient(135deg, #0a0a2e, #1a0a3a);
  padding: 2rem 0;
  text-align: center;
}
.tag-footer-all {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.tag-footer-all li {
  cursor: pointer;
  background-color: #c31200;
  color: #fff;
  padding: 4px 14px;
  border-radius: 8px;
  display: inline-block;
  margin: 4px 5px;
  font-size: 0.85rem;
  transition: filter 0.2s;
}
.tag-footer-all li:hover { filter: brightness(1.2); }
.text-power {
  padding: 1rem 0;
  color: #888;
  font-size: 0.85rem;
}

/* ===== MOBILE TAB BAR ===== */
.tab-bar-mobile {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: #131519;
  border-top: 3px solid var(--gold);
  padding: 6px 0;
}
.tab-bar-mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}
.tab-bar-mobile .tab-list {
  width: 20%;
  text-align: center;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}
.tab-bar-mobile .tab-list img { max-width: 26px; }
.tab-bar-mobile .tab-list .label { display: block; margin-top: 2px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .logo-head { width: 120px; }
  .hero-section { margin-top: 66px; }
  .game-icon { width: 80px; height: 80px; font-size: 1.8rem; }
  .partner-list li { width: 12%; }
}
@media (max-width: 767px) {
  .logo-head { width: 100px; }
  .hero-section { margin-top: 62px; }
  .match-root-bg { height: 240px; }
  .game-icon { width: 64px; height: 64px; font-size: 1.4rem; }
  .partner-list li { width: 12%; }
  .tab-bar-mobile { display: block; }
  .footer-custom { padding-bottom: 70px; }
  .promo-section h2 { font-size: 1.3rem; }
}
@media (max-width: 480px) {
  .logo-head { width: 80px; }
  .match-root-bg { height: 260px; }
  .game-icon { width: 56px; height: 56px; font-size: 1.2rem; }
  .partner-list li { width: 22%; }
  .tab-bar-mobile .tab-list { font-size: 10px; }
  .tab-bar-mobile .tab-list img { max-width: 22px; }
}


/* ===== Register Page ===== */
.register-page { background: #0b0b0f; }

.register-card {
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  padding: 35px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.register-card .header {
  background: linear-gradient(135deg, #1e7bff, #1554e8);
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 28px;
  color: #fff;
}

.register-card .header h1 { margin: 0; font-size: 34px; font-weight: 800; color: #fff; }
.register-card .header p { margin: 8px 0 0; font-size: 18px; opacity: 0.85; }

.register-card .form-group { margin-bottom: 18px; }

.register-card label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-weight: bold;
  font-size: 16px;
}

.register-card input[type="text"] {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  font-size: 16px;
  outline: none;
  transition: 0.2s;
  color: #333;
}

.register-card input[type="text"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.register-card .radio-row {
  display: flex;
  gap: 35px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.register-card .radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  cursor: pointer;
  font-weight: 500;
}

.register-card .radio-item input[type="radio"] {
  width: 20px;
  height: 28px;
  accent-color: #2563eb;
  cursor: pointer;
}

.register-card .submit {
  width: 100%;
  margin-top: 28px;
  padding: 16px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.register-card .submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37,99,235,0.35);
}

.register-card .submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.register-card .button-row-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.register-card .btn-clear {
  padding: 14px;
  font-size: 15px;
  font-weight: 500;
  background-color: #fee2e2;
  color: #ef4444;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.register-card .btn-clear:hover { background-color: #fca5a5; color: #991b1b; }

.register-card .btn-back {
  padding: 14px;
  font-size: 15px;
  font-weight: 500;
  background-color: #fef3c7;
  color: #d97706;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.register-card .btn-back:hover { background-color: #fde68a; color: #92400e; }

.register-card .iti { width: 100%; }
.register-card .phone-input { padding-left: 90px !important; }
.register-card .iti__selected-country { width: 80px; }
.register-card .iti__selected-country-primary { color: #333; }
.register-card .iti__selected-dial-code { color: #333; font-size: 16px; }
.register-card .iti__country-list { width: 360px; max-width: 90vw; }
.register-card .iti__country { color: #333; }
.register-card .iti__country-name { color: #333; font-weight: 500; }
.register-card .iti__country-name--hidden { color: #333; }

@@media (max-width: 600px) {
  .register-card { padding: 24px; }
  .register-card .header h1 { font-size: 26px; }
  .register-card .radio-row { gap: 15px; flex-direction: column; align-items: flex-start; }
}

@@media (max-width: 480px) {
  body { padding: 0; align-items: flex-start; }
  .register-card { border-radius: 0 0 28px 28px; padding: 32px 24px; }
  .register-card .radio-row { flex-direction: column; }
}
