/* ============================
   THẮNG88 – MAIN STYLESHEET
   Theme: Black / Gold / Red
   Futuristic Casino Luxury
   ============================ */

:root {
  --black: #080808;
  --black-2: #0f0f0f;
  --black-3: #141414;
  --black-4: #1a1a1a;
  --gold: #d4a017;
  --gold-light: #f5c842;
  --gold-pale: #f0d080;
  --red: #c0272d;
  --red-bright: #e03030;
  --red-dark: #8a1a1e;
  --white: #ffffff;
  --white-dim: rgba(255,255,255,0.85);
  --white-muted: rgba(255,255,255,0.55);
  --glow-gold: 0 0 20px rgba(212,160,23,0.5), 0 0 40px rgba(212,160,23,0.25);
  --glow-red: 0 0 20px rgba(192,39,45,0.5), 0 0 40px rgba(192,39,45,0.25);
  --border-gold: 1px solid rgba(212,160,23,0.35);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white-dim);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* SECTION TITLES */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--white);
  letter-spacing: 0.04em;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  margin: 0.8rem auto 0;
  border-radius: 2px;
}
.gold-text { color: var(--gold-light); }

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-bright) 60%, #ff4444 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,100,100,0.4);
  transition: var(--transition);
  text-transform: uppercase;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--red-bright) 0%, #ff5555 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--glow-red);
}
.btn-glow { box-shadow: var(--glow-red); }
.btn-large { padding: 18px 48px; font-size: 1.05rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  text-transform: uppercase;
  transition: var(--transition);
}
.btn-secondary:hover {
  background: rgba(212,160,23,0.12);
  color: var(--gold-pale);
  box-shadow: var(--glow-gold);
}

/* ============================
   HEADER / NAV
   ============================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,160,23,0.2);
  transition: var(--transition);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 12px 20px;
  flex-wrap: nowrap;
}
.nav-logo img { height: 44px; width: auto; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--white-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
  background: rgba(212,160,23,0.08);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.lang-toggle {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white-muted);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.lang-toggle:hover { color: var(--gold-light); border-color: var(--gold); }
.btn-cta {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 9px 18px;
  border-radius: var(--radius);
  text-transform: uppercase;
  white-space: nowrap;
  transition: var(--transition);
}
.btn-cta:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-pale) 100%);
  color: var(--black);
  box-shadow: var(--glow-gold);
  transform: translateY(-1px);
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--gold);
  display: block;
  transition: var(--transition);
  border-radius: 1px;
}

/* ============================
   HERO
   ============================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.45;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(8,8,8,0.97) 0%,
    rgba(8,8,8,0.85) 45%,
    rgba(8,8,8,0.55) 75%,
    rgba(8,8,8,0.72) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: heroFadeUp 0.9s ease both;
}
@keyframes heroFadeUp {
  from { opacity:0; transform: translateY(40px); }
  to   { opacity:1; transform: translateY(0); }
}
.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212,160,23,0.4);
  padding: 6px 20px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  background: rgba(212,160,23,0.07);
}
.hero-title-main {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-pale) 40%, var(--gold-light) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.05;
  text-shadow: none;
  filter: drop-shadow(0 0 30px rgba(212,160,23,0.4));
}
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 1rem 0 0.75rem;
}
.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--white-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-hint span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid rgba(212,160,23,0.4);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollPulse 1.8s infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity:1; top: 6px; }
  50% { opacity:0.3; top: 16px; }
}


/* ============================
   BONUSES
   ============================ */
.bonuses {
  padding: 5rem 0;
  background: var(--black-3);
  position: relative;
}
.bonuses::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(192,39,45,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.bonus-card {
  background: linear-gradient(145deg, rgba(20,20,20,0.9) 0%, rgba(26,16,6,0.8) 100%);
  border: 1px solid rgba(212,160,23,0.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.bonus-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.bonus-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,160,23,0.5);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), var(--glow-gold);
}
.bonus-card.featured {
  border-color: var(--gold);
  background: linear-gradient(145deg, rgba(30,20,5,0.95) 0%, rgba(20,14,4,0.9) 100%);
}
.bonus-card.featured::before {
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  height: 3px;
}
.bonus-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 12px rgba(212,160,23,0.4));
}
.bonus-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}
.bonus-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 8px 20px;
  border-radius: 20px;
  text-transform: uppercase;
  transition: var(--transition);
}
.bonus-cta:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-pale));
  color: var(--black);
  transform: scale(1.04);
}

/* ============================
   FEATURES
   ============================ */
.features {
  padding: 5rem 0;
  background: var(--black-2);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--black-4);
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: var(--transition);
  position: relative;
}
.feature-card:hover {
  border-color: rgba(212,160,23,0.55);
  transform: translateY(-4px);
  background: rgba(26,26,26,0.95);
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--white-muted);
  line-height: 1.65;
}

/* ============================
   GAMES
   ============================ */
.games {
  padding: 5rem 0;
  background: var(--black);
  position: relative;
}
.games::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(212,160,23,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.game-card {
  background: var(--black-3);
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.game-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.game-card:hover { border-color: rgba(212,160,23,0.45); transform: translateY(-4px); }
.game-card:hover::after { transform: scaleX(1); }
.game-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(192,39,45,0.1);
  border: 1px solid rgba(192,39,45,0.3);
  border-radius: 12px;
}
.game-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}
.game-body p {
  font-size: 0.85rem;
  color: var(--white-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.game-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.game-link:hover { color: var(--gold-light); }

/* ============================
   STEPS
   ============================ */
.steps {
  padding: 5rem 0;
  background: var(--black-3);
  text-align: center;
}
.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.step-card {
  background: var(--black-4);
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  width: 220px;
  transition: var(--transition);
}
.step-card:hover { border-color: var(--gold); transform: scale(1.02); }
.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}
.step-card p { font-size: 0.85rem; color: var(--white-muted); }
.step-divider {
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
}
.steps-cta { text-align: center; }

/* ============================
   FAQ
   ============================ */
.faq-section {
  padding: 5rem 0;
  background: var(--black-2);
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  border: var(--border-gold);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black-4);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  transition: var(--transition);
}
.faq-q:hover, .faq-q[aria-expanded="true"] { color: var(--gold-light); background: rgba(212,160,23,0.05); }
.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  transition: var(--transition);
  line-height: 1;
}
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); color: var(--red-bright); }
.faq-a {
  display: none;
  padding: 0 1.5rem 1.25rem;
}
.faq-a p { font-size: 0.92rem; color: var(--white-muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ============================
   FLOATING CTA
   ============================ */
.floating-cta {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 900;
  background: linear-gradient(135deg, var(--red), var(--red-bright));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 14px 22px;
  border-radius: 30px;
  text-transform: uppercase;
  box-shadow: var(--glow-red), 0 8px 24px rgba(0,0,0,0.5);
  animation: floatPulse 2.5s ease-in-out infinite;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s, background 0.25s;
}
.floating-cta.visible { opacity: 1; transform: translateY(0); }
.floating-cta:hover {
  background: linear-gradient(135deg, var(--red-bright), #ff5555);
  color: var(--white);
  box-shadow: 0 0 30px rgba(224,48,48,0.7), 0 8px 32px rgba(0,0,0,0.5);
}
@keyframes floatPulse {
  0%,100% { box-shadow: var(--glow-red), 0 8px 24px rgba(0,0,0,0.5); }
  50% { box-shadow: 0 0 30px rgba(192,39,45,0.7), 0 0 60px rgba(192,39,45,0.3), 0 8px 24px rgba(0,0,0,0.5); }
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(212,160,23,0.15);
  padding: 4rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(212,160,23,0.1);
  margin-bottom: 2rem;
}
.footer-brand img { margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.82rem;
  color: var(--white-muted);
  line-height: 1.6;
  margin-bottom: 0.4rem;
}
.footer-links h4, .footer-contact h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-links ul li, .footer-contact ul li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--white-muted);
}
.footer-links a:hover { color: var(--gold-light); }
.footer-contact ul li {
  font-size: 0.85rem;
  color: var(--white-muted);
}
.footer-warning {
  background: rgba(192,39,45,0.08);
  border: 1px solid rgba(192,39,45,0.25);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-bottom: 2rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.lang-toggle-footer {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white-muted);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.lang-toggle-footer:hover { color: var(--gold-light); border-color: var(--gold); }

/* ============================
   PAGE TEMPLATE (inner pages)
   ============================ */
.page-hero {
  padding: 130px 0 60px;
  background: var(--black-2);
  border-bottom: 1px solid rgba(212,160,23,0.1);
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.page-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--white-muted);
  font-size: 1rem;
  line-height: 1.7;
}
.page-content { padding: 4rem 0; background: var(--black); }
.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-light);
  margin: 2.5rem 0 1rem;
  letter-spacing: 0.03em;
}
.page-content p { font-size: 0.95rem; color: var(--white-muted); line-height: 1.75; margin-bottom: 1rem; }
.page-content ul { margin: 1rem 0 1rem 1.5rem; }
.page-content ul li {
  font-size: 0.93rem; color: var(--white-muted);
  margin-bottom: 0.5rem; line-height: 1.65;
  list-style: none; padding-left: 1.2rem; position: relative;
}
.page-content ul li::before { content: '◆'; color: var(--gold); font-size: 0.6rem; position: absolute; left: 0; top: 0.35rem; }
.page-cta-bar { text-align: center; padding: 3rem 0; background: var(--black-3); border-top: var(--border-gold); border-bottom: var(--border-gold); }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(8,8,8,0.98);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(212,160,23,0.2);
    z-index: 999;
    backdrop-filter: blur(12px);
    gap: 0.4rem;
  }
  .nav-links.open a { padding: 10px 14px; font-size: 0.9rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero { min-height: 100svh; }
  .hero-btns { flex-direction: column; align-items: center; }
  .steps-grid { flex-direction: column; align-items: center; }
  .step-divider { transform: rotate(90deg); }
  .step-card { width: 100%; max-width: 320px; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .bonus-grid { grid-template-columns: 1fr 1fr; }
  .games-grid { grid-template-columns: 1fr; }
  .floating-cta { bottom: 16px; right: 16px; font-size: 0.72rem; padding: 12px 16px; }
  .btn-large { padding: 16px 32px; }
}
@media (max-width: 400px) {
  .bonus-grid { grid-template-columns: 1fr; }
}
