/* ===== CSS Variables & Reset ===== */
:root {
  --bg-primary: #0b132b;
  --bg-secondary: #1c2541;
  --bg-card: #1c2541;
  --bg-card-hover: #3a506b;
  --accent: #ffb703;
  --accent-hover: #ffc933;
  --gold: #ffb703;
  --gold-deep: #e09f00;
  --cta-start: #ff8c00;
  --cta-end: #e63946;
  --success: #2ec4b6;
  --danger: #e63946;
  --text-primary: #f1f1f1;
  --text-secondary: #e0e0e0;
  --text-muted: #a0aec0;
  --border: #3a506b;
  --shadow: 0 6px 24px rgba(255, 183, 3, 0.18);
  --radius: 12px;
  --transition: all 0.3s ease;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  color: var(--accent-hover);
}

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

/* ===== Top Announcement Bar ===== */
.announcement-bar {
  background: linear-gradient(90deg, #0f172a, #1e3a5f, #0f172a);
  color: var(--gold);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
}

.announcement-bar .marquee {
  display: inline-block;
  animation: marquee 25s linear infinite;
}

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

/* ===== Header & Navigation ===== */
.header {
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.logo span {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--accent);
  background: rgba(0, 212, 255, 0.1);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: var(--shadow);
  list-style: none;
  padding: 8px 0;
}

.nav-menu > li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--text-secondary);
}

.dropdown-menu li a:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, #0a0e17 0%, #1a2332 50%, #0f172a 100%);
  padding: 60px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

/* ===== Container ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

section {
  padding: 50px 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
  border-radius: 2px;
}

/* ===== Ranking Cards ===== */
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.rank-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.rank-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.rank-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  color: #0a0e17;
  font-weight: 800;
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-card.top1 .rank-badge { background: linear-gradient(135deg, #ffd700, #fbbf24); }
.rank-card.top2 .rank-badge { background: linear-gradient(135deg, #c0c0c0, #9ca3af); color: #111; }
.rank-card.top3 .rank-badge { background: linear-gradient(135deg, #cd7f32, #b45309); }

.rank-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.rank-logo {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--border);
  background: #0a0e17;
}

.rank-info h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.stars {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.rank-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.safety-score {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.highlights {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.cta-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0099cc);
  color: #0a0e17;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #0088b3);
  color: #0a0e17;
  transform: scale(1.03);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.1);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  color: #0a0e17;
}

.btn-gold:hover {
  transform: scale(1.03);
  color: #0a0e17;
}

/* ===== Odds Calculator ===== */
.widget-section {
  background: var(--bg-secondary);
}

.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 500px;
  margin: 0 auto;
}

.calc-form {
  display: grid;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

.calc-results {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 10px;
  padding: 20px;
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-item .label {
  color: var(--text-secondary);
}

.result-item .value {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
}

.result-item .value.gold {
  color: var(--gold);
}

/* ===== Poll / Survey ===== */
.poll-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 600px;
  margin: 0 auto;
}

.poll-options {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.poll-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  cursor: pointer;
  transition: var(--transition);
}

.poll-option:hover,
.poll-option.selected {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.08);
}

.poll-option input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.poll-results {
  margin-top: 20px;
  display: none;
}

.poll-bar {
  margin-bottom: 12px;
}

.poll-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.poll-bar-track {
  height: 10px;
  background: var(--bg-primary);
  border-radius: 5px;
  overflow: hidden;
}

.poll-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #0099cc);
  border-radius: 5px;
  transition: width 0.8s ease;
}

/* ===== SEO Content ===== */
.seo-content {
  background: var(--bg-secondary);
}

.seo-content article {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.seo-content h2 {
  color: var(--text-primary);
  margin: 30px 0 16px;
  font-size: 1.4rem;
}

.seo-content h3 {
  color: var(--text-primary);
  margin: 24px 0 12px;
  font-size: 1.15rem;
}

.seo-content p {
  margin-bottom: 16px;
}

.seo-content ul, .seo-content ol {
  margin: 0 0 16px 24px;
}

.seo-content a {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== Responsible Gaming ===== */
.responsible {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  padding: 24px;
  margin: 30px 0;
  text-align: center;
}

.responsible h3 {
  color: var(--danger);
  margin-bottom: 12px;
}

.responsible p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== Footer ===== */
.footer {
  background: #060910;
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin-bottom: 8px;
}

/* ===== Brand Detail Page ===== */
.brand-hero {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 40px 0;
}

.brand-logo-lg {
  width: 150px;
  height: 150px;
  border-radius: 16px;
  border: 3px solid var(--border);
  background: #0a0e17;
}

.brand-meta {
  flex: 1;
  min-width: 250px;
}

.brand-meta h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.brand-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 16px 0;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 20px;
  text-align: center;
}

.stat-box .num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-box .lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 16px;
    display: none;
  }

  .nav-menu > li.open .dropdown-menu {
    display: block;
  }

  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 40px 16px 30px;
  }

  .brand-hero {
    flex-direction: column;
    text-align: center;
  }

  .cta-group {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 12px;
  }

  .rank-card {
    padding: 18px;
  }

  .calculator-card,
  .poll-card {
    padding: 20px;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }


/* ===== VN Theme Enhancements 2026 ===== */
body {
  background: radial-gradient(ellipse at top, #1c2541 0%, #0b132b 55%, #080f22 100%);
  color: var(--text-secondary);
}

h1, h2, h3, h4, h5 {
  color: #ffffff;
}

.announcement-bar {
  background: linear-gradient(90deg, #0b132b, #3a506b, #0b132b);
  color: var(--gold);
  border-bottom: 1px solid rgba(255, 183, 3, 0.25);
}

.header {
  background: rgba(11, 19, 43, 0.92);
  border-bottom: 1px solid rgba(255, 183, 3, 0.15);
}

.logo span {
  background: linear-gradient(135deg, #ffb703, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.35);
  font-weight: 700;
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #fff !important;
}

.btn-gold {
  background: linear-gradient(135deg, #ffd60a, #ffb703 40%, #e09f00);
  color: #0b132b !important;
  border: none;
  box-shadow: 0 4px 18px rgba(255, 183, 3, 0.4);
  font-weight: 800;
}
.btn-gold:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  color: #0b132b !important;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 183, 3, 0.55);
  color: var(--gold) !important;
}
.btn-outline:hover {
  background: rgba(255, 183, 3, 0.12);
  color: #fff !important;
}

.rank-badge {
  background: linear-gradient(135deg, #e63946, #c1121f);
  color: #fff;
  box-shadow: 0 2px 10px rgba(230, 57, 70, 0.45);
}

.rank-card.top1 {
  border-color: rgba(255, 183, 3, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 183, 3, 0.25), 0 8px 32px rgba(255, 183, 3, 0.12);
}
.rank-card.top2 {
  border-color: rgba(192, 192, 192, 0.4);
}
.rank-card.top3 {
  border-color: rgba(205, 127, 50, 0.45);
}

.rank-card {
  background: linear-gradient(180deg, #1c2541 0%, #152238 100%);
  border: 1px solid var(--border);
}

.safety-score {
  color: var(--gold);
  font-weight: 700;
}

.stars {
  color: var(--gold);
  letter-spacing: 1px;
}

.hero {
  background: linear-gradient(180deg, rgba(28, 37, 65, 0.9) 0%, rgba(11, 19, 43, 0.4) 100%);
}

.hero h1 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(255, 183, 3, 0.2);
}

.hot-tag {
  display: inline-block;
  background: linear-gradient(135deg, #e63946, #ff8c00);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  animation: pulse-hot 1.5s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes pulse-hot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.feature-tags span {
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.3);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Mobile ranking CTAs side by side */
@media (max-width: 768px) {
  .rank-card .cta-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .rank-card .cta-group .btn {
    width: 100%;
    text-align: center;
    padding: 12px 8px;
    font-size: 0.85rem;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #0b132b;
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu.open {
    display: flex;
  }
  .has-dropdown .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: #152238;
    padding-left: 12px;
  }
  .has-dropdown.open .dropdown-menu {
    display: block;
  }
  .pros-cons {
    grid-template-columns: 1fr !important;
  }
}

.compare-table th {
  background: #152238;
  color: var(--gold);
}
.compare-table td {
  background: #1c2541;
}

.footer {
  background: #080f22;
  border-top: 1px solid rgba(255, 183, 3, 0.12);
}


/* ===== SEO/UX polish ===== */
.btn, .btn-primary, .btn-gold, .btn-outline {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
}
.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.compare-table {
  min-width: 640px;
}
@media (max-width: 768px) {
  .rank-card .cta-group .btn {
    min-height: 48px;
    font-size: 0.82rem;
    padding: 12px 6px;
  }
  .feature-tags span {
    font-size: 0.7rem;
  }
}
