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

:root {
  --green: #00c853;
  --green-dark: #009624;
  --dark: #0a0f1e;
  --dark2: #111827;
  --card: #1a2235;
  --text: #e8eaf6;
  --muted: #8892a4;
  --accent: #ff4444;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,200,83,.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
}
#bgLayer {
  display: none;
  position: fixed; inset: 0; z-index: -2;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
#bgLayer::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(8,12,24,.75);
}

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

/* ── HEADER ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,15,30,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  display: flex; align-items: center;
  padding: 14px 20px;
  position: relative; justify-content: center;
}
.header-inner .hamburger { position: absolute; right: 20px; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--green); text-decoration: none; }
.logo-img-wrap { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 40px; width: auto; object-fit: contain; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; transition: color .2s; }
.nav a:hover { color: var(--text); }
.hamburger {
  display: none; background: none; border: none;
  color: var(--text); font-size: 1.6rem; cursor: pointer; margin-left: auto;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 12px;
  padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.06);
  background: var(--dark2);
}
.mobile-menu a { color: var(--text); text-decoration: none; font-size: 1rem; }
.mobile-menu.open { display: flex; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 50px;
  font-size: .95rem; font-weight: 700; cursor: pointer;
  border: 2px solid transparent; transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }

/* ── SLIDER ── */
.slider-section {
  position: relative; overflow: hidden;
  margin-top: 72px; height: 42vh; min-height: 320px;
  max-width: 1100px; margin-left: auto; margin-right: auto;
  border-radius: 16px;
}
.slider { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.slide {
  min-width: 100%; height: 100%;
  display: flex; align-items: center; padding: 0 40px;
  position: relative;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,15,30,.85) 45%, transparent 100%);
}
.slide-1 { background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0a3d2a 100%); }
.slide-2 { background: linear-gradient(135deg, #1a0a28 0%, #2d1060 50%, #0a1628 100%); }
.slide-3 { background: linear-gradient(135deg, #0a1f28 0%, #0d3730 50%, #1a2808 100%); }

/* Field pattern overlay */
.slide-1::after, .slide-2::after, .slide-3::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 48px, rgba(255,255,255,.03) 48px, rgba(255,255,255,.03) 50px),
    repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(255,255,255,.03) 48px, rgba(255,255,255,.03) 50px);
  pointer-events: none;
}
.slide-content {
  position: relative; z-index: 2; max-width: 600px; margin: 0 auto;
}
.badge {
  display: inline-block; background: var(--accent);
  color: #fff; font-size: .8rem; font-weight: 700;
  padding: 4px 14px; border-radius: 50px; margin-bottom: 18px;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.7} }
.slide-content h1 {
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 60%, var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.slide-content p { font-size: 1.1rem; color: var(--muted); margin-bottom: 28px; }
.cta-group { display: flex; gap: 14px; flex-wrap: wrap; }

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: #fff; font-size: 1.4rem; width: 48px; height: 48px;
  border-radius: 50%; cursor: pointer; z-index: 10;
  transition: background .2s; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
.slider-btn:hover { background: var(--green); }
.prev { left: 16px; }
.next { right: 16px; }
.slider-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.3); cursor: pointer; transition: all .3s;
}
.dot.active { background: var(--green); width: 24px; border-radius: 4px; }

/* ── STATS ── */
.stats-bar { background: var(--card); padding: 32px 20px; border-top: 1px solid rgba(255,255,255,.06); }
.stats-inner { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num {
  display: block; font-size: 2.2rem; font-weight: 800;
  color: var(--green); line-height: 1;
}
.stat-label { font-size: .85rem; color: var(--muted); margin-top: 4px; display: block; }

/* ── FEATURES (3 BUTTONS) ── */
.features { padding: 80px 20px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; text-align: center; margin-bottom: 10px; }
.section-sub { color: var(--muted); text-align: center; margin-bottom: 48px; }
.btn-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.feature-btn {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 36px 24px;
  background: var(--card); border: 2px solid rgba(255,255,255,.06);
  border-radius: var(--radius); cursor: pointer; transition: all .3s;
  color: var(--text);
}
.feature-btn:hover {
  border-color: var(--green); transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,200,83,.2);
}
.feature-btn.featured {
  border-color: var(--green);
  background: linear-gradient(145deg, var(--card) 0%, rgba(0,200,83,.12) 100%);
  box-shadow: var(--shadow);
}

/* ── NỔI BẬT: nền bên trong đổi màu liên tục ── */
@keyframes btn-highlight-bg {
  0%   { background-color: rgba(0,200,83,.28);  border-color: rgba(0,200,83,.6); }
  20%  { background-color: rgba(255,200,0,.28); border-color: rgba(255,200,0,.7); }
  40%  { background-color: rgba(255,68,68,.28); border-color: rgba(255,68,68,.7); }
  60%  { background-color: rgba(56,139,253,.28);border-color: rgba(56,139,253,.7); }
  80%  { background-color: rgba(168,85,247,.28);border-color: rgba(168,85,247,.7); }
  100% { background-color: rgba(0,200,83,.28);  border-color: rgba(0,200,83,.6); }
}
.feature-btn.highlight {
  animation: btn-highlight-bg 3s ease-in-out infinite;
  border-width: 2px;
  transition: none;
}

.badge-btn {
  position: absolute; top: -12px; right: 20px;
  background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 3px 12px; border-radius: 50px;
}
.feature-icon { font-size: 2.4rem; line-height: 1; }
.feature-label { font-size: 1.1rem; font-weight: 700; }
.feature-desc { font-size: .85rem; color: var(--muted); text-align: center; }

/* ── CONTACT ── */
.contact-section { padding: 80px 20px; background: var(--dark2); }
.contact-form { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input,
.contact-form textarea {
  background: var(--card); border: 1px solid rgba(255,255,255,.08);
  color: var(--text); border-radius: var(--radius); padding: 14px 18px;
  font-family: inherit; font-size: .95rem; outline: none; transition: border .2s;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--green); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; }
.form-status { font-size: .9rem; padding: 4px 0; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--accent); }

/* ── FOOTER ── */
.footer { padding: 32px 20px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.footer p { color: var(--muted); font-size: .85rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); font-size: .85rem; text-decoration: none; }
.footer-links a:hover { color: var(--green); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px); z-index: 999;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 36px; max-width: 460px; width: 100%;
  position: relative; animation: slideUp .3s ease;
}
@keyframes slideUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:none} }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.08); border: none; color: var(--text);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.modal h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.modal p { color: var(--muted); margin-bottom: 20px; font-size: .95rem; }
.modal input {
  width: 100%; background: var(--dark2); border: 1px solid rgba(255,255,255,.1);
  color: var(--text); border-radius: var(--radius); padding: 13px 16px;
  font-family: inherit; font-size: .95rem; outline: none; margin-bottom: 14px;
}
.modal input:focus { border-color: var(--green); }
.modal .btn { width: 100%; justify-content: center; }
.modal-status { margin-top: 12px; font-size: .9rem; text-align: center; }
.modal-status.ok { color: var(--green); }
.modal-status.err { color: var(--accent); }

/* ── NỘI DUNG TRANG CON (page.html) ── */
.page-content-section { padding: 48px 20px 80px; }
.page-items { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.page-item-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius); padding: 20px 24px;
  text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .2s;
}
.page-item-card:hover { border-color: var(--green); transform: translateY(-3px); }
.pi-label { font-weight: 700; min-width: 100px; }
.pi-value { color: var(--muted); flex: 1; font-size: .9rem; }
.pi-arrow { color: var(--green); font-size: 1.1rem; margin-left: auto; }

/* Nút active — trang đang xem */
.feature-btn.active-page {
  border-color: var(--green) !important;
  background: linear-gradient(145deg, var(--card), rgba(0,200,83,.15)) !important;
  box-shadow: 0 0 0 2px rgba(0,200,83,.25);
}

/* ── RESPONSIVE ── */
/* ── TRANG CON (server-rendered cũ) ── */
.page-main { padding: 100px 20px 60px; min-height: 80vh; }
.page-hero { text-align: center; margin-bottom: 48px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 10px; }
.page-hero p  { color: var(--muted); font-size: 1rem; margin-bottom: 16px; }

.page-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.page-card {
  background: var(--card); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .2s;
}
.page-card:hover { border-color: var(--green); transform: translateY(-4px); }

.page-card-price { font-size: 1.8rem; font-weight: 800; color: var(--green); }
.page-card-label { font-size: .85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.page-card-note  { font-size: .85rem; color: var(--muted); }

.page-card-match { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; }
.match-badge { background: var(--accent); color:#fff; font-size:.75rem; font-weight:700; padding:3px 10px; border-radius:50px; }
.match-teams { font-weight: 700; flex: 1; }
.match-time  { color: var(--muted); font-size: .85rem; }
.match-watch { background: var(--green); color:#fff; font-size:.85rem; font-weight:700; padding:6px 16px; border-radius:50px; margin-left:auto; }

.page-card-contact { flex-direction: row; align-items: center; gap: 16px; }
.contact-label { font-weight: 700; min-width: 80px; }
.contact-value { color: var(--green); }

@media (max-width: 768px) {
  .nav, .nav-cta { display: none; }
  .hamburger { display: block; }
  .btn-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }

  /* ── Banner mobile ── */
  .slider-section {
    height: auto; min-height: unset;
    margin: 70px 12px 0;
    border-radius: 14px;
  }
  .slider { height: auto; }
  .slide {
    min-width: 100%; height: auto;
    padding: 28px 20px 20px;
    align-items: flex-start;
  }
  .slide-content { max-width: 100%; margin: 0; }
  .slide-content h1 { font-size: 1.6rem; line-height: 1.2; margin-bottom: 10px; }
  .slide-content p  { font-size: .9rem; margin-bottom: 18px; }
  .badge            { font-size: .72rem; padding: 3px 10px; margin-bottom: 12px; }
  .cta-group        { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .cta-group .btn   { font-size: .82rem; padding: 9px 18px; }
  .slider-btn       { display: none; }
  .slider-dots      { padding: 10px 0 14px; }
}
