/* =============================================
   YONO RUMMY INDIA - Main Stylesheet
   Style: Retro-Futurism Gaming / Green Theme
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;400;500;600;700&family=Russo+One&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #080E08;
  --bg2:      #0C180C;
  --bg3:      #162416;
  --card:     #0F180F;
  --primary:  #22C55E;
  --primary2: #4ADE80;
  --cyan:     #06B6D4;
  --rose:     #F43F5E;
  --gold:     #F59E0B;
  --text:     #E2E8F0;
  --muted:    #94A3B8;
  --border:   rgba(34,197,94,0.28);
  --glow:     0 0 22px rgba(34,197,94,0.45);
  --glow-cyan:0 0 20px rgba(6,182,212,0.5);
  --radius:   12px;
  --trans:    all 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Scanline overlay (subtle retro effect) */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.025) 2px,
    rgba(0,0,0,0.025) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

a { color: var(--primary2); text-decoration: none; transition: var(--trans); }
a:hover { color: var(--cyan); }

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

h1,h2,h3,h4,h5 {
  font-family: 'Russo One', sans-serif;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* ---- Utilities ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-primary { color: var(--primary2); }
.text-cyan    { color: var(--cyan); }
.text-rose    { color: var(--rose); }
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--muted); }

/* ---- Neon glow text ---- */
.neon-text {
  text-shadow: 0 0 10px var(--primary), 0 0 30px var(--primary), 0 0 60px rgba(34,197,94,0.35);
}
.neon-cyan {
  text-shadow: 0 0 10px var(--cyan), 0 0 30px var(--cyan);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8,14,8,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--trans);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-wrap img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 0 8px rgba(34,197,94,0.65));
}

.logo-name {
  font-family: 'Russo One', sans-serif;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.04em;
}
.logo-name span { color: var(--primary2); }

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

.nav-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: var(--trans);
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text);
  background: rgba(34,197,94,0.12);
}

.nav-cta {
  background: var(--primary) !important;
  color: #041004 !important;
  padding: 8px 20px !important;
  font-weight: 700 !important;
  box-shadow: 0 0 15px rgba(34,197,94,0.35);
}
.nav-cta:hover {
  background: var(--primary2) !important;
  box-shadow: var(--glow) !important;
  transform: translateY(-1px);
  color: #041004 !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--trans);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(34,197,94,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(6,182,212,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 90%, rgba(244,63,94,0.07) 0%, transparent 60%),
    var(--bg);
}

/* Animated grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,197,94,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 400px; height: 400px;
  background: var(--primary);
  top: -100px; right: -100px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: var(--cyan);
  bottom: 0; left: 10%;
  animation-delay: 3s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-40px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,197,94,0.1);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary2);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  color: var(--text);
  margin-bottom: 8px;
  text-shadow: 0 0 60px rgba(34,197,94,0.25);
}
.hero-title .accent { color: var(--primary2); }

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--primary);
  margin-bottom: 16px;
  font-family: 'Russo One', sans-serif;
}

.hero-desc {
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}
.hero-stat-num {
  font-family: 'Russo One', sans-serif;
  font-size: 1.8rem;
  color: var(--text);
  display: block;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: var(--trans);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #16A34A 100%);
  color: #041004;
  box-shadow: 0 4px 20px rgba(34,197,94,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34,197,94,0.6);
  color: #041004;
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
}
.btn-outline:hover {
  background: rgba(6,182,212,0.1);
  box-shadow: var(--glow-cyan);
  color: var(--cyan);
}

.btn-download {
  background: linear-gradient(135deg, var(--rose) 0%, #E11D48 100%);
  color: #fff;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 10px;
  box-shadow: 0 4px 25px rgba(244,63,94,0.4);
  position: relative;
  overflow: hidden;
}
.btn-download::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.btn-download:hover::before { transform: translateX(100%); }
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(244,63,94,0.6);
  color: #fff;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ============================================
   SECTION STYLES
   ============================================ */
section { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  background: rgba(34,197,94,0.1);
  border: 1px solid var(--border);
  color: var(--primary2);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-tag.cyan {
  background: rgba(6,182,212,0.1);
  border-color: rgba(6,182,212,0.28);
  color: var(--cyan);
}

.section-tag.rose {
  background: rgba(244,63,94,0.1);
  border-color: rgba(244,63,94,0.28);
  color: var(--rose);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--text);
  margin-bottom: 12px;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ============================================
   APK CARD
   ============================================ */
.apk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.apk-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--trans);
  position: relative;
  display: flex;
  flex-direction: column;
}

.apk-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34,197,94,0.06) 0%, rgba(6,182,212,0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.apk-card:hover {
  border-color: rgba(34,197,94,0.65);
  box-shadow: var(--glow), 0 20px 60px rgba(0,0,0,0.4);
  transform: translateY(-6px);
}
.apk-card:hover::before { opacity: 1; }

.apk-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg3);
}

.apk-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.apk-card:hover .apk-card-img img { transform: scale(1.05); }

.apk-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--rose);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}

.apk-card-badge.new  { background: var(--primary); color: #041004; }
.apk-card-badge.hot  { background: var(--rose); }

.apk-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.apk-card-name {
  font-family: 'Russo One', sans-serif;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 6px;
}

.apk-card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.apk-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.78rem;
}

.apk-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
}
.apk-rating span { color: var(--muted); margin-left: 4px; }

.apk-downloads {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.apk-card-btn {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #16A34A 100%);
  color: #041004;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(34,197,94,0.3);
}
.apk-card-btn:hover {
  box-shadow: 0 6px 25px rgba(34,197,94,0.55);
  transform: translateY(-1px);
  color: #041004;
}

/* ============================================
   SECTION DIVIDER / ALTERNATING BG
   ============================================ */
.section-alt { background: var(--bg2); }

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ============================================
   APK DETAIL PAGE
   ============================================ */
.apk-hero {
  padding-top: 70px;
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.apk-hero-bg {
  position: absolute;
  inset: 0;
}

.apk-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: blur(4px) saturate(1.4);
}

.apk-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    var(--bg) 0%,
    rgba(8,14,8,0.75) 50%,
    rgba(8,14,8,0.3) 100%
  );
}

.apk-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 0 40px;
}

.apk-hero-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: end;
}

.apk-featured-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--glow), 0 20px 60px rgba(0,0,0,0.5);
  border: 2px solid var(--border);
  aspect-ratio: 1;
}
.apk-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apk-hero-info h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 16px;
  color: var(--text);
}

.apk-hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.apk-stat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
}

.apk-stat-chip svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
}

.apk-stat-chip .chip-label { color: var(--muted); }
.apk-stat-chip .chip-value { color: var(--text); font-weight: 600; }

.apk-download-section {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.apk-version-badge {
  background: var(--bg3);
  border: 1px solid rgba(6,182,212,0.28);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
}

/* ============================================
   CONTENT SECTION
   ============================================ */
.content-section {
  background: var(--bg2);
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.content-main h1,
.content-main h2 {
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.content-main h1 { font-size: 1.6rem; margin-top: 0; }
.content-main h2 { font-size: 1.25rem; color: var(--primary2); }

.content-main p {
  color: #CBD5E1;
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.975rem;
}

.content-main strong { color: var(--text); }

/* APK stats sidebar */
.apk-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-title {
  font-family: 'Russo One', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary2);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(34,197,94,0.08);
  font-size: 0.875rem;
}
.stat-row:last-child { border-bottom: none; }
.stat-row .label { color: var(--muted); }
.stat-row .value { color: var(--text); font-weight: 600; }
.stat-row .value.gold  { color: var(--gold); }
.stat-row .value.green { color: var(--primary2); }

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

/* ============================================
   RELATED GAMES SECTION
   ============================================ */
.related-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.related-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--trans);
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.related-card:hover {
  border-color: rgba(34,197,94,0.6);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

.related-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg3);
}
.related-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.related-card:hover .related-card-img img { transform: scale(1.08); }

.related-card-body {
  padding: 12px;
}

.related-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-card-dl {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ============================================
   RESPONSIBLE GAMBLING
   ============================================ */
.gambling-warning {
  background: linear-gradient(135deg, rgba(244,63,94,0.07) 0%, rgba(34,197,94,0.05) 100%);
  border: 1px solid rgba(244,63,94,0.22);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}

.warning-icon {
  width: 64px; height: 64px;
  background: rgba(244,63,94,0.12);
  border: 2px solid rgba(244,63,94,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.gambling-warning h3 {
  color: var(--rose);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.gambling-warning p {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 20px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.gambling-tips {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.gambling-tip {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.gambling-tip svg { color: var(--rose); flex-shrink: 0; }

/* ============================================
   STATIC PAGES (About, Contact, Disclaimer)
   ============================================ */
.page-hero {
  padding-top: 70px;
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: blur(3px);
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(8,14,8,0.65) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 12px;
}

.page-hero p { color: var(--muted); font-size: 1.05rem; }

.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 20px;
}

.page-content h1 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 20px;
  margin-top: 48px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.page-content h1:first-child { margin-top: 0; }

.page-content h2 {
  font-size: 1.3rem;
  color: var(--primary2);
  margin-top: 32px;
  margin-bottom: 12px;
}

.page-content h3 {
  font-size: 1.05rem;
  color: var(--cyan);
  margin-top: 24px;
  margin-bottom: 10px;
}

.page-content p {
  color: #CBD5E1;
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.975rem;
}

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

.page-content li {
  color: #CBD5E1;
  line-height: 1.8;
  margin-bottom: 8px;
  font-size: 0.975rem;
}

.page-content strong { color: var(--text); }

/* Contact info boxes */
.contact-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-box-icon {
  width: 48px;
  height: 48px;
  background: rgba(34,197,94,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-box-icon svg { color: var(--primary2); width: 22px; height: 22px; }

.contact-box-info h4 {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 4px;
  font-family: 'Russo One', sans-serif;
}

.contact-box-info p { color: var(--muted); font-size: 0.875rem; margin: 0; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 40px; height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.footer-logo-name {
  font-family: 'Russo One', sans-serif;
  font-size: 1rem;
  color: var(--text);
}
.footer-logo-name span { color: var(--primary2); }

.footer-desc {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-heading {
  font-family: 'Russo One', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: var(--trans);
}
.footer-links a:hover { color: var(--primary2); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: var(--muted);
  font-size: 0.8rem;
}
.footer-legal a:hover { color: var(--primary2); }

/* 18+ badge */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 2px solid var(--rose);
  border-radius: 8px;
  font-family: 'Russo One', sans-serif;
  font-size: 0.75rem;
  color: var(--rose);
}

/* ============================================
   SEO KEYWORDS (visually hidden)
   ============================================ */
.seo-keywords {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 16px 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary2); }
.breadcrumb-sep { color: rgba(148,163,184,0.35); }
.breadcrumb-current { color: var(--text); }

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--trans);
  z-index: 500;
  box-shadow: var(--glow);
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
  background: var(--primary2);
  transform: translateY(-3px);
}
.scroll-top svg { color: #041004; width: 20px; height: 20px; }

/* ============================================
   TRUST SECTION
   ============================================ */
.trust-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 40px 0;
}

.trust-item {
  text-align: center;
}

.trust-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(34,197,94,0.18) 0%, rgba(6,182,212,0.08) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.trust-icon svg { width: 26px; height: 26px; color: var(--primary2); }

.trust-label {
  font-size: 0.85rem;
  color: var(--muted);
}
.trust-value {
  font-family: 'Russo One', sans-serif;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 4px;
}

/* ============================================
   CATEGORY TABS
   ============================================ */
.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cat-tab {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  transition: var(--trans);
  font-family: 'Chakra Petch', sans-serif;
}

.cat-tab:hover,
.cat-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #041004;
  box-shadow: 0 4px 15px rgba(34,197,94,0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .apk-sidebar { position: static; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .apk-hero-inner { grid-template-columns: 200px 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(8,14,8,0.97);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    flex-direction: column;
    gap: 4px;
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-stats { gap: 20px; }
  .apk-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .apk-hero-inner { grid-template-columns: 1fr; }
  .apk-featured-img { max-width: 240px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .gambling-tips { gap: 10px; }
}

@media (max-width: 480px) {
  .apk-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .apk-hero-stats { gap: 10px; }
  .gambling-warning { padding: 24px 16px; }
}

/* ============================================
   LOADING / ANIMATION
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   GLITCH EFFECT (hero title)
   ============================================ */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  color: var(--text);
}
.glitch::before {
  text-shadow: -2px 0 var(--cyan);
  animation: glitch1 3s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.glitch::after {
  text-shadow: 2px 0 var(--rose);
  animation: glitch2 2s infinite linear alternate-reverse;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch1 {
  0%   { clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%); transform: translate(-2px, 0); }
  20%  { clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%); transform: translate(2px, 0); }
  40%  { clip-path: polygon(0 25%, 100% 25%, 100% 30%, 0 30%); transform: translate(-1px, 0); }
  60%  { clip-path: polygon(0 50%, 100% 50%, 100% 20%, 0 20%); transform: translate(2px, 0); }
  80%  { clip-path: polygon(0 70%, 100% 70%, 100% 80%, 0 80%); transform: translate(-2px, 0); }
  100% { clip-path: polygon(0 90%, 100% 90%, 100% 100%, 0 100%); transform: translate(2px, 0); }
}
@keyframes glitch2 {
  0%   { clip-path: polygon(0 60%, 100% 60%, 100% 65%, 0 65%); transform: translate(2px, 0); }
  20%  { clip-path: polygon(0 80%, 100% 80%, 100% 85%, 0 85%); transform: translate(-2px, 0); }
  40%  { clip-path: polygon(0 40%, 100% 40%, 100% 45%, 0 45%); transform: translate(1px, 0); }
  60%  { clip-path: polygon(0 10%, 100% 10%, 100% 15%, 0 15%); transform: translate(-2px, 0); }
  80%  { clip-path: polygon(0 30%, 100% 30%, 100% 40%, 0 40%); transform: translate(2px, 0); }
  100% { clip-path: polygon(0 0%, 100% 0%, 100% 5%, 0 5%); transform: translate(-1px, 0); }
}
