/* ============================================================
   Betify.com.pa — Bespoke stylesheet
   Brand: vivid green #1ed760 on black #171717/#1e1e1e
   ============================================================ */

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #171717;
  color: #e8e8e8;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ---- CSS custom props ---- */
:root {
  --green: #1ed760;
  --green-dim: #17b04d;
  --bg-0: #171717;
  --bg-1: #1e1e1e;
  --bg-2: #252525;
  --bg-card: #222222;
  --border: rgba(255,255,255,0.08);
  --text: #e8e8e8;
  --text-muted: #9a9a9a;
  --radius: 10px;
  --header-h: 64px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(23,23,23,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.header-logo img { height: 28px; width: auto; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.header-nav a {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.header-nav a:hover,
.header-nav a.active {
  color: #fff;
  background: var(--bg-2);
}
.header-nav a.active { color: var(--green); }

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-2);
  border-radius: 7px;
  padding: 3px;
}
.lang-switch a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.lang-switch a.active {
  background: var(--green);
  color: #000;
}

.btn-login {
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.btn-login:hover { border-color: var(--green); color: var(--green); }

.btn-register {
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--green);
  color: #000;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-register:hover { background: #22ef6a; }

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.burger-line + .burger-line { margin-top: 5px; }
.burger.open .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open .burger-line:nth-child(2) { opacity: 0; }
.burger.open .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 24px;
  z-index: 999;
  transform: translateY(-100%);
  transition: transform 0.28s ease;
}
.mobile-nav.open { transform: translateY(0); }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.mobile-nav-links a {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s;
}
.mobile-nav-links a:hover { background: var(--bg-2); }
.mobile-nav-links a.active { color: var(--green); }

.mobile-nav-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.mobile-lang-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}
.mobile-lang-switch a {
  padding: 7px 20px;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-2);
  color: var(--text-muted);
}
.mobile-lang-switch a.active {
  background: var(--green);
  color: #000;
}
.mobile-nav .btn-login,
.mobile-nav .btn-register {
  display: block;
  text-align: center;
  padding: 13px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0d0d0d;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,0.92) 40%, rgba(0,0,0,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 64px 40px 64px 48px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 215, 96, 0.12);
  border: 1px solid rgba(30, 215, 96, 0.3);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero-title .accent { color: var(--green); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  background: var(--green);
  color: #000;
  font-size: 1rem;
  font-weight: 800;
  transition: background 0.15s, transform 0.1s;
}
.btn-hero-primary:hover { background: #22ef6a; transform: translateY(-1px); }
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.btn-hero-secondary:hover { border-color: var(--green); background: rgba(30,215,96,0.07); }

.hero-stats {
  position: absolute;
  right: 40px;
  bottom: 40px;
  display: flex;
  gap: 32px;
  z-index: 2;
}
.hero-stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ============================================================
   CATEGORY CHIPS
   ============================================================ */
.chips-bar {
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chips-bar::-webkit-scrollbar { display: none; }
.chips-inner {
  display: flex;
  gap: 6px;
  padding: 12px 0;
  min-width: max-content;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-muted);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.chip:hover, .chip.active {
  border-color: var(--green);
  color: var(--green);
  background: rgba(30,215,96,0.08);
}
.chip-icon { font-size: 1rem; line-height: 1; }

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section { padding: 56px 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-title {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.section-title .accent { color: var(--green); }
.section-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.section-link:hover { opacity: 1; }

/* ============================================================
   GAME GRID
   ============================================================ */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.game-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 2/3;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}
.game-tile:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 1px var(--green);
}
.game-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.game-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.18s;
}
.game-tile:hover .game-tile-overlay { opacity: 1; }
.game-tile-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ============================================================
   PROMO BANNER
   ============================================================ */
.promo-strip {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  margin-bottom: 32px;
}
.promo-strip img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 80px;
  object-fit: cover;
}

/* ============================================================
   FEATURES / SPORTS SECTION
   ============================================================ */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.18s;
}
.feature-card:hover { border-color: rgba(30,215,96,0.25); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(30,215,96,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.feature-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   APP SECTION
   ============================================================ */
.app-section {
  background: linear-gradient(135deg, #1a2a1f 0%, #0f1f17 50%, var(--bg-0) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.app-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.app-text {}
.app-headline {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.app-headline .accent { color: var(--green); }
.app-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 440px;
  line-height: 1.65;
}
.app-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.app-badge:hover { border-color: var(--green); background: rgba(30,215,96,0.06); }
.app-badge-icon { font-size: 1.2rem; }
.app-mockup img {
  width: 280px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

/* ============================================================
   PAYMENTS SECTION
   ============================================================ */
.payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.pay-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  min-width: 110px;
}
.pay-item img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: brightness(0.9) saturate(0.8);
  transition: filter 0.15s;
}
.pay-item:hover img { filter: brightness(1.1) saturate(1.1); }
.pay-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ============================================================
   SEO ARTICLE BLOCK
   ============================================================ */
.seo-section {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 64px 0;
}
.seo-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ONLY headings inside seo block */
.seo-article h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.seo-article h2 {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 700;
  color: #fff;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  line-height: 1.3;
}
.seo-article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e0e0e0;
  margin: 28px 0 12px;
}
.seo-article p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}
.seo-article strong { color: var(--text); }
.seo-article em { color: #b8b8b8; }
.seo-article a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.seo-article a:hover { color: #22ef6a; }

.seo-article ul, .seo-article ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.seo-article ol { list-style: decimal; }
.seo-article li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.65;
}

/* Responsive tables */
.seo-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.875rem;
  table-layout: fixed;
  overflow-wrap: anywhere;
}
.seo-article th {
  background: var(--bg-2);
  color: var(--green);
  font-weight: 700;
  padding: 11px 14px;
  text-align: left;
  border-bottom: 2px solid var(--green);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.seo-article td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
.seo-article tr:last-child td { border-bottom: none; }
.seo-article tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* FAQ inside article */
.seo-article h3 + p { margin-top: 0; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #111;
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand {}
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 28px; width: auto; }
.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 240px;
  margin-bottom: 16px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}
.footer-social a:hover { border-color: var(--green); }
.footer-social img { width: 16px; height: 16px; }

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--green); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-rg {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}
.footer-rg .badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 4px;
  background: #cc2200;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  margin-right: 6px;
  vertical-align: middle;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .header-nav, .header-right { display: none; }
  .burger { display: flex; flex-direction: column; }
  .mobile-nav { display: block; }

  .hero-stats { display: none; }
  .hero-content { padding: 44px 20px; }

  .app-inner { grid-template-columns: 1fr; }
  .app-mockup { display: none; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .feature-cards { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}

@media (max-width: 560px) {
  .seo-article table { font-size: 0.75rem; }
  .seo-article th, .seo-article td { padding: 7px 8px; overflow-wrap: anywhere; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 1.7rem; }
  .btn-hero-primary, .btn-hero-secondary { padding: 11px 18px; font-size: 0.9rem; }
}
