/* =====================================================
   SlotsPK — Main Stylesheet
   ===================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --bg-primary: #0a0a18;
  --bg-secondary: #12122a;
  --bg-card: #1a1a35;
  --bg-card-hover: #22224a;
  --accent-gold: #f0b90b;
  --accent-gold-dark: #c49109;
  --accent-green: #00c853;
  --accent-green-dark: #009624;
  --accent-red: #ff4757;
  --text-primary: #ffffff;
  --text-secondary: #b8b8d0;
  --text-muted: #6a6a90;
  --border: #2a2a50;
  --border-light: #353560;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 20px rgba(240,185,11,0.3);
  --shadow-green: 0 0 20px rgba(0,200,83,0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-body: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --header-height: 70px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-green); }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; color: var(--text-secondary); }
p { margin-bottom: 1rem; color: var(--text-secondary); }
h1,h2,h3,h4,h5,h6 { color: var(--text-primary); font-weight: 700; line-height: 1.3; margin-bottom: 0.8rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
strong { color: var(--text-primary); }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
th, td { padding: 0.75rem 1rem; border: 1px solid var(--border); text-align: left; color: var(--text-secondary); }
th { background: var(--bg-secondary); color: var(--text-primary); font-weight: 600; }
tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* ---------- Utilities ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }
.text-gold { color: var(--accent-gold); }
.text-green { color: var(--accent-green); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.badge {
  display: inline-block; padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-gold { background: var(--accent-gold); color: #000; }
.badge-green { background: var(--accent-green); color: #000; }
.badge-red { background: var(--accent-red); color: #fff; }
.badge-outline { border: 1px solid var(--border-light); color: var(--text-secondary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius-full);
  font-size: 1rem; font-weight: 700; border: none; cursor: pointer;
  transition: var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-download {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
  color: #fff; box-shadow: var(--shadow-green);
  font-size: 1.05rem; padding: 0.9rem 2rem;
}
.btn-download:hover {
  transform: translateY(-2px); box-shadow: 0 6px 30px rgba(0,200,83,0.5); color: #fff;
}
.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #000; box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(240,185,11,0.5); color: #000; }
.btn-outline { background: transparent; border: 2px solid var(--border-light); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.875rem; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.15rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,10,24,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height); display: flex; align-items: center;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; width: 100%;
}
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-img { width: 42px; height: 42px; border-radius: var(--radius-sm); object-fit: cover; }
.logo-text { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); }
.logo-text span { color: var(--accent-gold); }
.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  padding: 0.5rem 0.85rem; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--accent-gold); background: rgba(240,185,11,0.1); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-download { padding: 0.55rem 1.3rem; font-size: 0.9rem; }
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 0.5rem; color: var(--text-primary); flex-direction: column;
  gap: 5px; align-items: center; justify-content: center;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); transition: var(--transition);
  border-radius: 2px;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile Nav ---------- */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: var(--header-height); left: 0; right: 0;
    background: var(--bg-secondary); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 1rem; gap: 0.25rem; align-items: stretch;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.75rem 1rem; font-size: 1rem; }
  .header-download { display: none; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 0.75rem 0; margin-bottom: 1.5rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; padding: 0; margin: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 0.25rem; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: 0.25rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-gold); }
.breadcrumb li:last-child { color: var(--text-secondary); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #0a0a18 0%, #1a1a35 50%, #0a1228 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(240,185,11,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(0,200,83,0.06) 0%, transparent 50%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center; position: relative; z-index: 1;
}
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; margin-bottom: 1rem; }
.hero-title .highlight { color: var(--accent-gold); }
.hero-desc { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 1.5rem; max-width: 480px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2rem; }
.hero-stat { text-align: center; }
.hero-stat .number { font-size: 1.6rem; font-weight: 800; color: var(--accent-gold); }
.hero-stat .label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }
.hero-image-wrap { position: relative; }
.hero-image-wrap img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg), var(--shadow-gold);
  width: 100%; object-fit: cover; aspect-ratio: 4/3;
}
.hero-badge-float {
  position: absolute; background: var(--bg-card);
  border: 1px solid var(--border-light); border-radius: var(--radius-md);
  padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.5rem;
  box-shadow: var(--shadow-md);
}
.hero-badge-float.top-right { top: -1rem; right: -1rem; }
.hero-badge-float.bottom-left { bottom: -1rem; left: -1rem; }
.hero-badge-float .icon { font-size: 1.5rem; }
.hero-badge-float .info .value { font-weight: 700; font-size: 1rem; }
.hero-badge-float .info .desc { font-size: 0.75rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { justify-content: center; }
  .hero-image-wrap { order: -1; }
  .hero-badge-float { display: none; }
}

/* ---------- Section Headers ---------- */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header .section-label {
  display: inline-block; color: var(--accent-gold); font-size: 0.85rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem;
}
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); max-width: 500px; margin: 0 auto; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: var(--transition);
}
.card:hover { border-color: var(--border-light); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.card-title a { color: var(--text-primary); }
.card-title a:hover { color: var(--accent-gold); }
.card-meta { display: flex; gap: 0.75rem; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; flex-wrap: wrap; }
.card-excerpt { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0; }

.game-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: var(--transition); text-align: center;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); border-color: var(--accent-gold); }
.game-card-img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.game-card-body { padding: 1rem; }
.game-card-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--text-primary); }
.game-card-type { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* ---------- Content Layout ---------- */
.content-wrapper { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
@media (max-width: 1024px) { .content-wrapper { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */
.article-header { margin-bottom: 2rem; }
.article-header .badge { margin-bottom: 0.75rem; }
.article-header h1 { margin-bottom: 0.75rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.article-meta span { display: flex; align-items: center; gap: 0.3rem; }
.article-body h2 { margin-top: 2rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.article-body h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; color: var(--accent-gold); }
.article-body p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.2rem; }
.article-body ul, .article-body ol { color: var(--text-secondary); margin-bottom: 1.2rem; }
.article-body li { margin-bottom: 0.5rem; color: var(--text-secondary); }
.article-body img {
  border-radius: var(--radius-md); margin: 1.5rem 0;
  width: 100%; object-fit: cover;
  border: 1px solid var(--border);
}
.article-body .callout {
  background: var(--bg-secondary); border-left: 4px solid var(--accent-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.article-body .callout p { margin: 0; }
.article-body .callout.green { border-left-color: var(--accent-green); }
.article-body .step-box {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem; margin: 1.5rem 0;
}
.article-body .step { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.article-body .step:last-child { margin-bottom: 0; }
.article-body .step-num {
  min-width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #000; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; flex-shrink: 0;
}
.article-body .step-content h4 { margin-bottom: 0.25rem; }
.article-body .step-content p { margin: 0; font-size: 0.9rem; }
.article-cta {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 2rem; text-align: center; margin: 2rem 0;
}
.article-cta h3 { color: var(--accent-gold); margin-bottom: 0.5rem; }
.article-cta p { margin-bottom: 1.25rem; }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.tag {
  padding: 0.3rem 0.8rem; border-radius: var(--radius-full);
  background: var(--bg-secondary); border: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-muted);
}
.tag:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.25rem; cursor: pointer;
  font-weight: 600; color: var(--text-primary); font-size: 0.95rem;
  user-select: none; gap: 1rem;
}
.faq-question:hover { color: var(--accent-gold); }
.faq-question .icon {
  min-width: 24px; height: 24px; border-radius: var(--radius-full);
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: var(--transition); flex-shrink: 0;
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); background: var(--accent-gold); color: #000; border-color: var(--accent-gold); }
.faq-answer { display: none; padding: 0 1.25rem 1.1rem; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* ---------- Reviews ---------- */
.review-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem;
}
.review-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.review-avatar {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-green));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: #000; flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: 0.95rem; }
.review-location { font-size: 0.8rem; color: var(--text-muted); }
.review-stars { color: var(--accent-gold); font-size: 0.85rem; margin-bottom: 0.75rem; }
.review-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ---------- Sidebar ---------- */
.sidebar { position: sticky; top: calc(var(--header-height) + 1rem); display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
}
.widget-header {
  background: var(--bg-secondary); padding: 0.875rem 1.25rem;
  font-weight: 700; font-size: 0.95rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.5rem;
}
.widget-body { padding: 1.25rem; }
.download-widget { text-align: center; }
.download-widget img { border-radius: var(--radius-sm); margin: 0 auto 1rem; width: 80px; }
.download-widget h4 { margin-bottom: 0.25rem; }
.download-widget p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li { padding: 0; margin: 0; }
.cat-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; color: var(--text-secondary); font-size: 0.9rem;
  border-bottom: 1px solid var(--border); transition: var(--transition);
}
.cat-list a:hover { color: var(--accent-gold); padding-left: 4px; }
.cat-list li:last-child a { border-bottom: none; }
.cat-list .count {
  background: var(--bg-secondary); border-radius: var(--radius-full);
  padding: 0.1rem 0.5rem; font-size: 0.75rem; color: var(--text-muted);
}
.related-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.related-list li a {
  display: flex; gap: 0.75rem; color: var(--text-secondary);
  font-size: 0.875rem; line-height: 1.4;
}
.related-list li a img { width: 50px; height: 50px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.related-list li a:hover { color: var(--accent-gold); }

/* ---------- Categories Section ---------- */
.cat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem;
  text-align: center; transition: var(--transition); display: block;
  text-decoration: none;
}
.cat-card:hover { border-color: var(--accent-gold); transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.cat-icon { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }
.cat-name { font-weight: 700; color: var(--text-primary); font-size: 0.95rem; margin-bottom: 0.25rem; }
.cat-count { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Download Guide Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.step-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem; text-align: center;
  transition: var(--transition);
}
.step-card:hover { border-color: var(--accent-green); }
.step-number {
  width: 50px; height: 50px; margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; color: #fff;
}
.step-card h4 { margin-bottom: 0.5rem; }
.step-card p { font-size: 0.875rem; margin: 0; color: var(--text-muted); }

/* ---------- Security Section ---------- */
.security-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.security-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.25rem;
  display: flex; gap: 1rem; align-items: flex-start;
}
.security-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0,200,83,0.15), rgba(0,200,83,0.05));
  border: 1px solid rgba(0,200,83,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.security-card h4 { margin-bottom: 0.25rem; font-size: 0.95rem; }
.security-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ---------- APK Info Box ---------- */
.apk-box {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 2rem; display: flex; gap: 2rem; align-items: center;
}
.apk-icon { width: 90px; height: 90px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; }
.apk-info { flex: 1; }
.apk-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.25rem; }
.apk-details { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0.75rem 0; }
.apk-detail { font-size: 0.85rem; color: var(--text-muted); }
.apk-detail span { color: var(--text-primary); font-weight: 600; }
@media (max-width: 600px) {
  .apk-box { flex-direction: column; align-items: center; text-align: center; }
  .apk-details { justify-content: center; }
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem; text-align: center;
}
.stat-item .value { font-size: 1.8rem; font-weight: 800; color: var(--accent-gold); }
.stat-item .label { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Trending Badge ---------- */
.trending-ribbon {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--accent-red); color: #fff;
  font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full); text-transform: uppercase;
}
.hot-ribbon {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--accent-gold); color: #000;
  font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full); text-transform: uppercase;
}
.new-ribbon {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--accent-green); color: #000;
  font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full); text-transform: uppercase;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border); padding: 2.5rem 0 2rem;
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--text-muted); max-width: 600px; }

/* ---------- Table of Contents ---------- */
.toc {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 2rem;
}
.toc-title { font-weight: 700; margin-bottom: 0.75rem; font-size: 0.95rem; }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li a { color: var(--text-muted); font-size: 0.875rem; }
.toc li a:hover { color: var(--accent-gold); }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 3rem; }
.page-btn {
  min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-secondary);
  font-size: 0.9rem; transition: var(--transition); cursor: pointer;
}
.page-btn:hover, .page-btn.active { border-color: var(--accent-gold); color: var(--accent-gold); background: rgba(240,185,11,0.1); }

/* ---------- Contact Form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); }
.form-group input, .form-group textarea, .form-group select {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem;
  color: var(--text-primary); font-size: 0.95rem;
  font-family: var(--font-body); transition: var(--transition);
  width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(240,185,11,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---------- Notice / Alert ---------- */
.notice {
  padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1.5rem;
}
.notice-warning { background: rgba(240,185,11,0.1); border: 1px solid rgba(240,185,11,0.3); }
.notice-info { background: rgba(0,150,255,0.1); border: 1px solid rgba(0,150,255,0.3); }
.notice-success { background: rgba(0,200,83,0.1); border: 1px solid rgba(0,200,83,0.3); }
.notice p { margin: 0; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 3rem 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2.5rem;
}
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.75rem; max-width: 280px; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: var(--transition); color: var(--text-muted);
}
.social-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 1rem; color: var(--text-primary); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-gold); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 1.25rem 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem; font-size: 0.8rem; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent-gold); }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 1rem 1.5rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.cookie-banner p { font-size: 0.875rem; color: var(--text-secondary); margin: 0; }
.cookie-banner.hidden { display: none; }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* ---------- Back to Top ---------- */
.back-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: var(--accent-gold); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer; border: none;
  box-shadow: var(--shadow-md); transition: var(--transition);
  opacity: 0; pointer-events: none;
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); }

/* ---------- Divider ---------- */
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ---------- Label-value pairs ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.info-item { background: var(--bg-secondary); border-radius: var(--radius-sm); padding: 0.75rem 1rem; }
.info-item .label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.info-item .value { font-weight: 700; font-size: 0.95rem; margin-top: 0.15rem; }
@media (max-width: 480px) { .info-grid { grid-template-columns: 1fr; } }

/* ---------- Highlight Box ---------- */
.highlight-box {
  background: linear-gradient(135deg, rgba(240,185,11,0.1), rgba(240,185,11,0.03));
  border: 1px solid rgba(240,185,11,0.3); border-radius: var(--radius-md);
  padding: 1.5rem; margin: 1.5rem 0;
}
.highlight-box h4 { color: var(--accent-gold); margin-bottom: 0.5rem; }

/* ---------- Category Page Header ---------- */
.cat-page-header {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem;
}
.cat-page-icon { font-size: 3rem; }
.cat-page-info h1 { font-size: 1.8rem; margin-bottom: 0.25rem; }
.cat-page-info p { color: var(--text-muted); margin: 0; }

/* ---------- Search Box ---------- */
.search-box { position: relative; }
.search-box input {
  width: 100%; background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 0.65rem 1rem 0.65rem 2.75rem;
  color: var(--text-primary); font-size: 0.9rem;
}
.search-box input:focus { outline: none; border-color: var(--accent-gold); }
.search-box .search-icon {
  position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 1rem;
}

/* ---------- Print ---------- */
@media print {
  .site-header, .sidebar, .site-footer, .cookie-banner, .back-top { display: none; }
  body { background: #fff; color: #000; }
  .article-body p, .article-body li { color: #333; }
}

/* ---------- Animations ---------- */
@keyframes pulse-gold {
  0%, 100% { box-shadow: var(--shadow-gold); }
  50% { box-shadow: 0 0 30px rgba(240,185,11,0.5); }
}
.btn-download { animation: pulse-gold 2.5s infinite; }
.btn-download:hover { animation: none; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-title, .hero-desc { animation: fadeInUp 0.6s ease both; }
.hero-actions { animation: fadeInUp 0.6s ease 0.2s both; }
