:root {
  --bg-primary: #071324;
  --bg-secondary: #0d1e36;
  --bg-card: #122847;
  --bg-card-hover: #17355f;
  --text-primary: #ffffff;
  --text-secondary: #8fa5c4;
  --text-muted: #5e779a;
  --color-cyan: #13b3fe;
  --color-teal: #43d3e6;
  --color-gold: #f3ba2f;
  --color-green: #00d084;
  --color-red: #ff4757;
  --border-color: rgba(19, 179, 254, 0.15);
  --border-glow: rgba(19, 179, 254, 0.4);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --transition: all 0.25s ease;
  --container-width: 1200px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 70px; /* space for mobile sticky bar */
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ==================== TOP ANNOUNCEMENT BAR ==================== */
.top-bar {
  background: linear-gradient(90deg, #0b2242, #103c6d, #0b2242);
  border-bottom: 1px solid rgba(19, 179, 254, 0.2);
  font-size: 13px;
  padding: 8px 0;
  color: #c0d7f5;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.marquee-container {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.marquee-icon {
  color: var(--color-gold);
  font-size: 15px;
}

.marquee-text {
  display: inline-block;
  animation: marquee 25s linear infinite;
  color: #e2eeff;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.top-actions {
  display: flex;
  gap: 15px;
  font-size: 12px;
}

.top-actions a:hover {
  color: var(--color-teal);
}

/* ==================== HEADER & NAVBAR ==================== */
.main-header {
  background-color: rgba(7, 19, 36, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  background: linear-gradient(135deg, var(--color-cyan), #0072ff);
  color: #fff;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 18px;
  letter-spacing: 1px;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.brand-title span {
  color: var(--color-cyan);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #c9dcfa;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background-color: rgba(19, 179, 254, 0.12);
  border-bottom: 2px solid var(--color-cyan);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-login {
  background: transparent;
  color: var(--color-cyan);
  border: 1.5px solid var(--color-cyan);
}

.btn-login:hover {
  background: rgba(19, 179, 254, 0.15);
  color: #fff;
  box-shadow: 0 0 15px rgba(19, 179, 254, 0.4);
}

.btn-register {
  background: linear-gradient(135deg, var(--color-cyan), #0077fe);
  color: #fff;
  box-shadow: 0 4px 15px rgba(19, 179, 254, 0.35);
}

.btn-register:hover {
  background: linear-gradient(135deg, #27c0ff, #0088ff);
  box-shadow: 0 6px 20px rgba(19, 179, 254, 0.6);
  transform: translateY(-1px);
}

/* ==================== HERO BANNER SLIDER ==================== */
.hero-banner {
  padding: 24px 0 10px;
}

.slider-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slide-item {
  display: none;
  padding: 50px 40px;
  background-size: cover;
  background-position: center;
  min-height: 280px;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.slide-item.active {
  display: flex;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(19, 179, 254, 0.2);
  border: 1px solid var(--color-cyan);
  color: var(--color-teal);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 12px;
}

.slide-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.slide-subtitle {
  font-size: 16px;
  color: #b5cbe8;
  margin-bottom: 24px;
  max-width: 600px;
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--color-cyan);
  width: 24px;
  border-radius: 10px;
}

/* ==================== STATS & TRUST BAR ==================== */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.trust-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}

.trust-item:hover {
  background: var(--bg-card);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.trust-icon {
  font-size: 28px;
  color: var(--color-cyan);
}

.trust-text h4 {
  font-size: 15px;
  color: #fff;
  font-weight: 700;
}

.trust-text p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== SECTION STYLES ==================== */
.section {
  padding: 36px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 24px;
  background: var(--color-cyan);
  border-radius: 3px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 10px;
}

.view-more {
  color: var(--color-cyan);
  font-size: 13px;
  font-weight: 600;
}

.view-more:hover {
  color: var(--color-teal);
  text-decoration: underline;
}

/* ==================== CATEGORY TABS ==================== */
.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.cat-tab {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.cat-tab:hover, .cat-tab.active {
  background: linear-gradient(135deg, rgba(19, 179, 254, 0.2), rgba(0, 114, 255, 0.3));
  border-color: var(--color-cyan);
  color: #fff;
  box-shadow: 0 0 12px rgba(19, 179, 254, 0.3);
}

/* ==================== GAME CARDS GRID ==================== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-cyan);
  box-shadow: 0 8px 24px rgba(19, 179, 254, 0.25);
  background: var(--bg-card-hover);
}

.game-banner {
  height: 140px;
  background: linear-gradient(135deg, #112d52, #1b4277);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.game-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.game-rate {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--color-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
}

.game-icon-visual {
  font-size: 56px;
  color: rgba(19, 179, 254, 0.85);
  text-shadow: 0 0 20px rgba(19, 179, 254, 0.5);
}

.game-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-info-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.game-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.game-provider {
  font-size: 12px;
  color: var(--color-cyan);
  background: rgba(19, 179, 254, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.game-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex: 1;
}

.game-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.game-tag {
  font-size: 12px;
  color: var(--color-gold);
  font-weight: 600;
}

.btn-play {
  background: linear-gradient(135deg, var(--color-cyan), #0077fe);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.btn-play:hover {
  box-shadow: 0 0 12px rgba(19, 179, 254, 0.6);
}

/* ==================== 5 STEPS GUIDE SECTION ==================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  background: var(--bg-card);
  border-color: var(--color-cyan);
  transform: translateY(-4px);
}

.step-number {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-cyan), #0077fe);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 4px 12px rgba(19, 179, 254, 0.4);
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== PROMOTIONS SECTION ==================== */
.promos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.promo-card:hover {
  border-color: var(--color-cyan);
  box-shadow: 0 8px 24px rgba(19, 179, 254, 0.25);
  transform: translateY(-3px);
}

.promo-badge {
  background: rgba(19, 179, 254, 0.15);
  color: var(--color-teal);
  border: 1px solid var(--color-cyan);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 12px;
}

.promo-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.35;
}

.promo-summary {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex: 1;
}

.promo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.promo-highlight {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-gold);
}

/* ==================== FAQ ACCORDION ==================== */
.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--color-cyan);
  background: var(--bg-card);
}

.faq-header {
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 15px;
  color: #e2eeff;
  user-select: none;
}

.faq-header:hover {
  color: var(--color-cyan);
}

.faq-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
  color: var(--color-cyan);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
  font-size: 14px;
  color: #a7bedc;
  line-height: 1.7;
}

.faq-item.active .faq-content {
  padding: 0 20px 18px 20px;
  max-height: 400px;
}

/* ==================== SEO CONTENT BLOCK ==================== */
.seo-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  color: #8da4c4;
  font-size: 14px;
  line-height: 1.8;
}

.seo-block h3 {
  font-size: 18px;
  color: #fff;
  margin: 16px 0 8px;
}

.seo-block h3:first-child {
  margin-top: 0;
}

/* ==================== LICENSING & FOOTER ==================== */
.footer-top {
  background: #050f1c;
  padding: 40px 0 24px;
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
}

.footer-col h4 {
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--color-cyan);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #8fa5c4;
}

.footer-links a:hover {
  color: var(--color-cyan);
  padding-left: 4px;
}

.license-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.license-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #b5cbe8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom {
  background: #030a13;
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: #556c8a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==================== FLOATING CSKH BUTTON ==================== */
.floating-cskh {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-line {
  background: #00c300;
}

.float-telegram {
  background: #0088cc;
}

/* ==================== MOBILE BOTTOM BAR ==================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(7, 19, 36, 0.98);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.bottom-nav-inner {
  display: flex;
  height: 100%;
  justify-content: space-around;
  align-items: center;
}

.bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #8da4c4;
  gap: 3px;
  flex: 1;
}

.bottom-tab i {
  font-size: 18px;
}

.bottom-tab.active, .bottom-tab:hover {
  color: var(--color-cyan);
}

.bottom-tab.highlight {
  color: #fff;
  position: relative;
  top: -12px;
}

.bottom-tab.highlight .highlight-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-cyan), #0077fe);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(19, 179, 254, 0.5);
  font-size: 22px;
}

/* ==================== INTERNAL AUTH MODAL (ZERO EXTERNAL LINKS) ==================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: #0d1e36;
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 35px rgba(19, 179, 254, 0.35);
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  padding: 28px;
  position: relative;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover {
  color: #fff;
  transform: scale(1.1);
}
.modal-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.modal-tab.active {
  color: var(--color-cyan);
  border-bottom-color: var(--color-cyan);
}
.modal-input {
  width: 100%;
  background: #081527;
  border: 1px solid rgba(19, 179, 254, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.25s;
}
.modal-input:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 10px rgba(19, 179, 254, 0.4);
}
.modal-btn {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--color-cyan), #0077fe);
  color: #fff;
  cursor: pointer;
  margin-top: 6px;
  transition: var(--transition);
}
.modal-btn:hover {
  box-shadow: 0 4px 15px rgba(19, 179, 254, 0.5);
  transform: translateY(-1px);
}
.modal-alert {
  display: none;
  background: #00b894;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  text-align: center;
}
