/* =====================================================
   TPOWER88.NET — Main Stylesheet
   Mobile-first, dark gaming theme
   ===================================================== */

/* ---- CSS Variables ---- */
:root {
  --bg:         #080c18;
  --bg-2:       #0e1525;
  --bg-card:    #131c30;
  --bg-card-2:  #1a2540;
  --border:     #1e2d4a;
  --red:        #e02020;
  --red-dark:   #b81818;
  --red-light:  #ff4444;
  --red-glow:   rgba(224, 32, 32, 0.25);
  --gold:       #c9920a;
  --gold-light: #f5be3a;
  --gold-glow:  rgba(201, 146, 10, 0.2);
  --text:       #eef2f8;
  --text-muted: #8a9cc0;
  --text-dim:   #4d607a;
  --white:      #ffffff;
  --font-en:    'Inter', system-ui, -apple-system, sans-serif;
  --font-zh:    'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font:       var(--font-en);
  --r:          8px;
  --r-lg:       16px;
  --r-xl:       24px;
  --shadow:     0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-red: 0 4px 24px rgba(224, 32, 32, 0.35);
  --transition: 0.25s ease;
  --nav-h:      70px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.lang-zh {
  font-family: var(--font-zh);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--white);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-muted);
  line-height: 1.75;
}

.text-red   { color: var(--red); }
.text-gold  { color: var(--gold-light); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-muted); }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 50px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-header .label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-glow);
  border: 1px solid rgba(224, 32, 32, 0.3);
  border-radius: 30px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1000;
  font-weight: 700;
  border-color: transparent;
}

.btn-gold:hover {
  box-shadow: 0 4px 20px var(--gold-glow);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 15px 36px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ---- Navigation ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(8, 12, 24, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-brand .nav-logo img {
  height: 32px;
}

.nav-logo .logo-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: -1px;
  box-shadow: var(--shadow-red);
}

.nav-logo .logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}

.nav-logo .logo-text span {
  color: var(--red);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7rem;
  opacity: 0.6;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 6px;
  box-shadow: var(--shadow);
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
}

.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nav-lang a {
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-lang a:hover,
.nav-lang a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-lang span {
  color: var(--border);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: background var(--transition);
}

.hamburger:hover {
  background: rgba(255,255,255,0.06);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  overflow-y: auto;
  padding: 24px 20px;
  border-top: 1px solid var(--border);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 13px 16px;
  border-radius: var(--r);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.04);
}

.mobile-menu-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.mobile-menu-actions .btn {
  flex: 1;
  min-width: 120px;
}

.mobile-lang {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  align-items: center;
}

.mobile-lang a {
  padding: 4px 12px !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  font-size: 0.82rem !important;
  border-bottom: 1px solid var(--border) !important;
  display: inline !important;
}

.mobile-lang a.active {
  border-color: var(--red) !important;
  color: var(--red) !important;
}

@media (min-width: 900px) {
  .nav-links   { display: flex; }
  .nav-actions { display: flex; }
  .hamburger   { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

@media (max-width: 820px) {
  .hero {
    min-height: unset;
  }
  .hero .container {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(224, 32, 32, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(14, 21, 37, 0.9) 0%, transparent 70%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 50%, #0d1020 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 32, 32, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-content {
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(224, 32, 32, 0.12);
  border: 1px solid rgba(224, 32, 32, 0.35);
  border-radius: 30px;
  padding: 6px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero h1 .highlight {
  color: var(--red);
  display: inline-block;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.hero-stat .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero-stat .num span {
  color: var(--red);
}

.hero-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* ---- Feature Cards ---- */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: rgba(224, 32, 32, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--red-glow);
  border: 1px solid rgba(224, 32, 32, 0.25);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: var(--red);
  flex-shrink: 0;
}

.feature-icon svg {
  display: block;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ---- Game Category Cards ---- */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.game-card:hover {
  border-color: var(--red);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(224,32,32,0.2);
}

.game-card-cover {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.game-card-cover.slots    { background: linear-gradient(135deg, #1a0a2e 0%, #2d1050 100%); }
.game-card-cover.live     { background: linear-gradient(135deg, #0a1a12 0%, #0d2e1a 100%); }
.game-card-cover.sports   { background: linear-gradient(135deg, #0a1528 0%, #0d2050 100%); }
.game-card-cover.lottery  { background: linear-gradient(135deg, #1a150a 0%, #2e250d 100%); }

.game-card-body {
  padding: 18px;
}

.game-card-body h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.game-card-body p {
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.game-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(224, 32, 32, 0.12);
  color: var(--red-light);
  border: 1px solid rgba(224, 32, 32, 0.2);
  margin-right: 4px;
  margin-bottom: 4px;
}

/* ---- Promo Cards ---- */
.promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.promo-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.promo-banner {
  background: linear-gradient(135deg, #1e1200 0%, #2e1e00 100%);
  border-bottom: 1px solid rgba(201, 146, 10, 0.2);
  padding: 30px 24px;
  text-align: center;
  position: relative;
}

.promo-percent {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  text-shadow: 0 0 30px rgba(245, 190, 58, 0.4);
}

.promo-banner p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-top: 6px;
}

.promo-body {
  padding: 20px 24px;
}

.promo-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.promo-body p {
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* ---- Steps / How to Start ---- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
}

.step-content h4 {
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.9rem;
}

/* ---- Providers / Logos strip ---- */
.providers-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.provider-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  transition: all var(--transition);
}

.provider-badge:hover {
  border-color: var(--text-dim);
  color: var(--white);
}

/* ---- FAQ Accordion ---- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: rgba(224, 32, 32, 0.35);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  transition: background var(--transition);
}

.faq-q:hover {
  background: var(--bg-card-2);
}

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.faq-item.open .faq-icon {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding: 16px 20px;
  background: var(--bg-2);
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  line-height: 1.75;
}

.faq-item.open .faq-a {
  display: block;
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, #1a0505 0%, var(--bg-2) 50%, #0a0c18 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(224, 32, 32, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  max-width: 480px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

.cta-section .cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ---- Alternate bg sections ---- */
.bg-alt { background: var(--bg-2); }
.bg-card { background: var(--bg-card); }

/* ---- Inner Page Hero ---- */
.page-hero {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
  border-bottom: 1px solid var(--border);
  padding: 60px 0 50px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
  justify-content: center;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-dim);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--text-muted);
}

.breadcrumb .sep { opacity: 0.4; }

/* ---- Login / Register Forms ---- */
.auth-wrapper {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 60px 0;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 36px;
}

.auth-card-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-card-header .logo-mark {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--white);
  margin: 0 auto 16px;
  box-shadow: var(--shadow-red);
}

.auth-card-header h1 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.auth-card-header p {
  font-size: 0.88rem;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--red);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}

.form-select:focus {
  border-color: var(--red);
}

.form-select option {
  background: var(--bg-card);
  color: var(--text);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--red);
}

.form-check a {
  color: var(--red-light);
}

.btn-full { width: 100%; }

.auth-alt {
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-alt a {
  color: var(--red-light);
  font-weight: 600;
}

/* ---- Download Page ---- */
.download-platforms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .download-platforms {
    grid-template-columns: repeat(2, 1fr);
  }
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
}

.platform-card:hover {
  border-color: var(--red);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.platform-icon {
  font-size: 3.5rem;
  margin-bottom: 18px;
}

.platform-card h3 {
  margin-bottom: 10px;
}

.platform-card p {
  font-size: 0.9rem;
  margin-bottom: 22px;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--red-glow);
  border: 1px solid rgba(224, 32, 32, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--text);
}

.contact-info-item a {
  color: var(--red-light);
  font-size: 0.9rem;
}

/* ---- About Page ---- */
.about-mission {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .about-mission {
    grid-template-columns: 1fr 1fr;
  }
}

.about-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.about-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 20px;
  text-align: center;
}

.about-stat-box .big-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
}

.about-stat-box p {
  font-size: 0.85rem;
}

/* ---- Info Cards (Slots, Casino, Sports pages) ---- */
.info-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .info-section {
    grid-template-columns: 1fr 1fr;
  }
}

.info-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}

.info-block h3 {
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.info-list li::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- Promotions ---- */
.promo-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .promo-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .promo-list { grid-template-columns: repeat(3, 1fr); }
}

.promo-full-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.promo-full-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
}

.promo-full-card .promo-head {
  background: linear-gradient(135deg, #1e1200 0%, #2e2000 60%, #1e1600 100%);
  padding: 32px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(201,146,10,0.15);
}

.promo-full-card .promo-head .amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  text-shadow: 0 0 24px rgba(245, 190, 58, 0.35);
}

.promo-full-card .promo-head .sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}

.promo-full-card .promo-info {
  padding: 22px 24px;
}

.promo-full-card .promo-info h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.promo-full-card .promo-info p {
  font-size: 0.87rem;
  margin-bottom: 16px;
}

.promo-terms {
  font-size: 0.75rem;
  color: var(--text-dim);
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: 14px;
}

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ---- Badges / Trust ---- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.trust-badge .icon {
  font-size: 1rem;
}

/* ---- Footer ---- */
.footer {
  background: #060912;
  border-top: 1px solid var(--border);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--red);
  color: var(--white);
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--text-muted);
}

/* ---- Responsive Utilities ---- */
.hide-mobile { display: none; }

@media (min-width: 640px) {
  .hide-mobile { display: block; }
}

.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ---- Notice / Alert ---- */
.notice {
  background: rgba(224, 32, 32, 0.08);
  border: 1px solid rgba(224, 32, 32, 0.2);
  border-radius: var(--r);
  padding: 14px 18px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.notice a {
  color: var(--red-light);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card-2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border);
}

/* =====================================================
   EXTENDED STYLES — v2
   Cover Banner | Game Gallery | Iframe | Agent
   ===================================================== */

/* ---- Cover / Promotional Banner ---- */
.cover-banner {
  background: linear-gradient(135deg, #1a0505 0%, #2a0a0a 40%, #1a1005 100%);
  border-top: 1px solid rgba(201, 146, 10, 0.15);
  border-bottom: 1px solid rgba(201, 146, 10, 0.15);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.cover-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 146, 10, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cover-banner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 32, 32, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cover-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .cover-banner-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 48px;
  }
}

.cover-banner-text {
  flex: 1;
}

.cover-banner-text .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(201, 146, 10, 0.12);
  border: 1px solid rgba(201, 146, 10, 0.3);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

.cover-banner-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 12px;
  line-height: 1.2;
}

.cover-banner-text p {
  font-size: 0.95rem;
  max-width: 440px;
  margin-bottom: 24px;
}

.cover-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .cover-banner-actions {
    justify-content: flex-start;
  }
}

.cover-banner-visual {
  flex-shrink: 0;
  text-align: center;
  padding: 28px 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 146, 10, 0.22);
  border-radius: var(--r-xl);
  position: relative;
}

.cover-banner-visual::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(201,146,10,0.15), transparent 60%);
  pointer-events: none;
}

.cover-banner-visual .amount {
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  text-shadow: 0 0 40px rgba(245, 190, 58, 0.35), 0 0 80px rgba(245, 190, 58, 0.12);
}

.cover-banner-visual .amount-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.cover-banner-visual .amount-sub {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 6px;
}

/* ---- Game Gallery Section ---- */
.gallery-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.gallery-tab {
  padding: 9px 22px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all var(--transition);
  font-family: inherit;
}

.gallery-tab:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

.gallery-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(224, 32, 32, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}

.gallery-item:hover {
  border-color: var(--red);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(224, 32, 32, 0.15);
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  position: relative;
  overflow: hidden;
  background: #111;
}

.gallery-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-item-thumb img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.play-btn-inner {
  background: var(--red);
  color: var(--white);
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.gallery-item-info {
  padding: 8px 10px 10px;
}

.gallery-item-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  gap: 4px;
}

.gallery-item-provider {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-item-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--red-light);
  background: var(--red-glow);
  border: 1px solid rgba(224, 32, 32, 0.18);
  border-radius: 10px;
  padding: 2px 7px;
  flex-shrink: 0;
}

.gallery-item-tag.live  { color: #4ade80; background: rgba(74,222,128,0.08); border-color: rgba(74,222,128,0.2); }
.gallery-item-tag.sport { color: #60a5fa; background: rgba(96,165,250,0.08); border-color: rgba(96,165,250,0.2); }
.gallery-item-tag.lottery { color: var(--gold-light); background: var(--gold-glow); border-color: rgba(201,146,10,0.25); }

/* ---- Iframe Page ---- */
.iframe-page {
  min-height: calc(100vh - var(--nav-h));
  background: var(--bg);
  padding: 36px 0 60px;
}

.iframe-page-header {
  text-align: center;
  padding: 0 20px;
  margin-bottom: 28px;
}

.iframe-page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 8px;
}

.iframe-page-header p {
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto;
}

.iframe-wrapper {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.iframe-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}

.iframe-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.iframe-lock {
  width: 26px;
  height: 26px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.iframe-url-bar {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.iframe-url-bar strong {
  color: var(--text-muted);
  font-weight: 500;
}

.iframe-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
  cursor: pointer;
}

.iframe-fullscreen-btn:hover {
  border-color: var(--red);
  color: var(--white);
}

.iframe-frame {
  width: 100%;
  height: 700px;
  border: none;
  display: block;
  background: #fff;
}

.iframe-note {
  max-width: 760px;
  margin: 14px auto 0;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.6;
}

.iframe-note a {
  color: var(--text-muted);
}

.iframe-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.iframe-tab-btn {
  flex: 1;
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  font-family: inherit;
  border-top: none;
  border-left: none;
  border-right: none;
  background: none;
}

.iframe-tab-btn.active {
  color: var(--white);
  border-bottom-color: var(--red);
}

.iframe-tab-btn:hover:not(.active) {
  color: var(--text);
}

/* ---- Agent Page ---- */
.agent-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 146, 10, 0.1);
  border: 1px solid rgba(201, 146, 10, 0.3);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.commission-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}

.commission-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.commission-table th {
  background: var(--bg-2);
  padding: 14px 20px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.commission-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.commission-table tr:last-child td {
  border-bottom: none;
}

.commission-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.commission-rate {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold-light);
}

.tier-pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.tier-bronze  { background: rgba(180,100,50,0.14); color: #cd7f32; border: 1px solid rgba(180,100,50,0.28); }
.tier-silver  { background: rgba(192,192,192,0.1);  color: #b0b8c8; border: 1px solid rgba(192,192,192,0.22); }
.tier-gold    { background: rgba(201,146,10,0.12);  color: var(--gold-light); border: 1px solid rgba(201,146,10,0.28); }
.tier-diamond { background: rgba(100,180,255,0.1);  color: #60c8ff; border: 1px solid rgba(100,180,255,0.22); }

.agent-benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .agent-benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .agent-benefit-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.agent-benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  transition: all var(--transition);
}

.agent-benefit-card:hover {
  border-color: rgba(201, 146, 10, 0.35);
  transform: translateY(-3px);
}

.agent-benefit-icon {
  width: 50px;
  height: 50px;
  background: rgba(201, 146, 10, 0.1);
  border: 1px solid rgba(201, 146, 10, 0.2);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.agent-benefit-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.agent-benefit-card p {
  font-size: 0.88rem;
}

.agent-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .agent-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.agent-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 24px;
  text-align: center;
  position: relative;
}

.agent-step-num {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: #1a1000;
  margin: 0 auto 18px;
}

.agent-step-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.agent-step-card p {
  font-size: 0.88rem;
}

/* =====================================================
   BANNER CAROUSEL — 促销轮播
   ===================================================== */

.banner-carousel {
  position: relative;
  overflow: hidden;
  background: #050505;
  line-height: 0;
}

.banner-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.banner-slide {
  flex-shrink: 0;
  width: 100%;
  position: relative;
}

.banner-slide img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 260px;
  object-fit: cover;
}

@media (min-width: 640px) {
  .banner-slide img {
    max-height: 340px;
  }
}

@media (min-width: 1024px) {
  .banner-slide img {
    max-height: 420px;
  }
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
  line-height: 1;
  font-family: inherit;
}

.banner-arrow:hover {
  background: var(--red);
  border-color: var(--red);
}

.banner-arrow-prev { left: 10px; }
.banner-arrow-next { right: 10px; }

.banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  padding: 0;
}

.banner-dot.is-active {
  width: 20px;
  border-radius: 3px;
  background: var(--red);
}

/* =====================================================
   TUTORIAL SECTION — 资讯栏
   ===================================================== */

.tutorial-section {
  background: linear-gradient(180deg, #0a0202 0%, #100505 100%);
  border-top: 1px solid rgba(224, 32, 32, 0.18);
  border-bottom: 1px solid rgba(224, 32, 32, 0.12);
  padding: 20px 0 24px;
}

.tutorial-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.tutorial-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.tutorial-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.tutorial-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(224, 32, 32, 0.25) transparent;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.tutorial-scroll::-webkit-scrollbar { height: 3px; }
.tutorial-scroll::-webkit-scrollbar-track { background: transparent; }
.tutorial-scroll::-webkit-scrollbar-thumb {
  background: rgba(224, 32, 32, 0.3);
  border-radius: 3px;
}

.tutorial-card {
  flex-shrink: 0;
  width: 88px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
}

.tutorial-card:hover,
.tutorial-card:focus {
  transform: translateY(-4px);
  outline: none;
}

.tutorial-card-thumb {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  overflow: hidden;
  margin: 0 auto 8px;
  border: 1.5px solid rgba(224, 32, 32, 0.25);
  background: #1a0a0a;
  position: relative;
}

.tutorial-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.tutorial-card:hover .tutorial-card-thumb img {
  transform: scale(1.06);
}

.tutorial-card-thumb .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 1.4rem;
  color: white;
}

.tutorial-card:hover .play-badge {
  opacity: 1;
}

.tutorial-card-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.35;
  word-break: break-all;
  padding: 0 2px;
}

/* =====================================================
   LIGHTBOX — 教学详情弹窗
   ===================================================== */

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9900;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 52px 16px 32px;
}

.lightbox-overlay.is-open {
  display: block;
}

.lightbox-close-btn {
  position: fixed;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.1rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9901;
  transition: background 0.2s;
  line-height: 1;
}

.lightbox-close-btn:hover {
  background: var(--red);
  border-color: var(--red);
}

.lightbox-title-bar {
  max-width: 560px;
  margin: 0 auto 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.lightbox-img-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.lightbox-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.lightbox-footer {
  max-width: 560px;
  margin: 20px auto 0;
  text-align: center;
}

/* =====================================================
   MOBILE BOTTOM NAVIGATION
   ===================================================== */

/* ===== MOBILE BOTTOM NAV — Red Theme ===== */
.m-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: linear-gradient(180deg, #b71c1c 0%, #c62828 50%, #b71c1c 100%);
  border-top: 2px solid rgba(255,255,255,0.12);
  z-index: 890;
  align-items: stretch;
  box-shadow: 0 -3px 16px rgba(0,0,0,0.45);
}

@media (max-width: 820px) {
  .m-bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: 58px;
  }
}

.m-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0;
  transition: color 0.18s;
  -webkit-tap-highlight-color: transparent;
  padding: 6px 0 4px;
}

.m-nav-item:hover,
.m-nav-item.is-active {
  color: #ffd54f;
}

.m-nav-icon {
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-nav-icon svg {
  width: 22px;
  height: 22px;
}

.m-nav-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1px;
  white-space: nowrap;
}

/* Center logo button */
.m-nav-center {
  flex: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.m-nav-center-btn {
  position: absolute;
  bottom: 4px;
  width: 64px;
  height: 64px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3), 0 -2px 12px rgba(0,0,0,0.35), 0 4px 16px rgba(0,0,0,0.4);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

.m-nav-center-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 0 0 4px #e53935, 0 -2px 14px rgba(0,0,0,0.4), 0 6px 20px rgba(0,0,0,0.5);
}

.m-nav-center-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.m-nav-center-btn .m-logo-mark {
  width: 48px;
  height: 48px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-nav-center-btn .m-logo-text {
  font-size: 0.88rem;
  font-weight: 900;
  color: white;
  letter-spacing: 0.5px;
}

