/* =========================================
   APK Mod Site — Zen Style CSS
   ========================================= */

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

/* ── Variables ── */
:root {
  --bg: #FAFAF8; --surface: #FFFFFF; --surface-2: #F4F4F0; --border: #E8E8E4;
  --text: #1A1A1A; --text-2: #6B6B6B; --text-3: #9B9B9B;
  --accent: #5C7A5C; --accent-2: #C47D5A; --accent-bg: #F0F4EF; --accent-2-bg: #FBF3EE;
  --header-bg: rgba(250,250,248,0.92);
  --radius: 14px; --radius-sm: 8px; --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --font: 'Noto Sans', -apple-system, sans-serif;
  --max-w: 1200px; --tr: all 0.2s ease; --tr-slow: all 0.4s ease;
}
:root[data-theme="dark"] {
  --bg: #121416; --surface: #1A1E22; --surface-2: #20262B; --border: #2B343B;
  --text: #F3F5F7; --text-2: #C8D0D7; --text-3: #8E9AA5;
  --accent: #86A986; --accent-2: #D39A7A; --accent-bg: rgba(134,169,134,0.15); --accent-2-bg: rgba(211,154,122,0.16);
  --header-bg: rgba(18,20,22,0.9);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.2);
  --shadow: 0 8px 20px rgba(0,0,0,0.28), 0 3px 8px rgba(0,0,0,0.2);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.35), 0 6px 16px rgba(0,0,0,0.25);
}

/* ── Reset ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; padding-top: 64px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input { font-family: inherit; }
ul,ol { list-style: none; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
::selection { background: var(--accent); color: #fff; }

/* ── Focus ── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
input:focus-visible, button:focus-visible { outline-offset: 2px; }

/* ── Typography ── */
h1,h2,h3,h4 { font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.8rem,4vw,2.8rem); }
h2 { font-size: clamp(1.4rem,3vw,2rem); }
h3 { font-size: 1.1rem; }
p { line-height: 1.75; }

/* ── SVG Icons ── */
.ico { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; flex-shrink: 0; }
.ico-sm { width: 0.875em; height: 0.875em; }
.ico-lg { width: 1.25em; height: 1.25em; }
.ico-xl { width: 1.5em; height: 1.5em; }
.ico-2x { width: 2em; height: 2em; }
.ico-3x { width: 2.5em; height: 2.5em; }
.section-ico { color: var(--accent); }
.section-ico .ico { width: 1.2em; height: 1.2em; vertical-align: -0.2em; margin-right: 0.3rem; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 480px) { .container { padding: 0 1rem; } }

/* ── Header ── */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: box-shadow 0.2s ease; }
.header-inner { display: flex; align-items: center; gap: 2rem; height: 64px; }
.header.scrolled { box-shadow: var(--shadow-sm); }
.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.03em; flex-shrink: 0; }
.logo-icon { width: 32px; height: 32px; background: var(--accent); border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; }
.logo-icon .ico { width: 18px; height: 18px; }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a { padding: 0.4rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; color: var(--text-2); transition: var(--tr); }
.nav a:hover,.nav a.active { background: var(--surface-2); color: var(--text); }
.nav a.active { color: var(--accent); }
.header-search { flex: 1; max-width: 360px; position: relative; }
.header-search input { width: 100%; padding: 0.5rem 1rem 0.5rem 2.5rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px; font-size: 0.875rem; color: var(--text); transition: var(--tr); outline: none; }
.header-search input:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px rgba(92,122,92,0.1); }
.header-search input::placeholder { color: var(--text-3); }
.header-search .search-icon { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; display: flex; align-items: center; }
.header-search .search-icon .ico { width: 16px; height: 16px; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.menu-toggle .ico { width: 18px; height: 18px; }
.menu-toggle:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; }
.theme-toggle .ico { width: 16px; height: 16px; }
.theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: inline-block; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.25rem; border-radius: 99px; font-size: 0.875rem; font-weight: 500; transition: var(--tr); white-space: nowrap; }
.btn .ico { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(92,122,92,0.2); }
.btn-primary:hover { background: #4d6a4d; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(92,122,92,0.3); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(92,122,92,0.2); }
.btn-outline { border: 1px solid var(--border); color: var(--text-2); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.btn-ghost { color: var(--text-2); padding: 0.4rem 0.75rem; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.7rem 1.75rem; font-size: 1rem; }

/* ── Badge ── */
.badge { display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; border-radius: 99px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.badge-premium { background: var(--accent-2-bg); color: var(--accent-2); }
.badge-new { background: var(--accent-bg); color: var(--accent); }
.badge-editors { background: #FEF3C7; color: #92400E; }
.badge-free { background: #DBEAFE; color: #1E40AF; }

/* ── App Card ── */
.app-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; display: flex; gap: 1rem; transition: var(--tr); cursor: pointer; text-decoration: none; color: inherit; }
.app-card:hover { border-color: rgba(92,122,92,0.3); box-shadow: var(--shadow), 0 0 0 1px rgba(92,122,92,0.06); transform: translateY(-2px); }
.app-card:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.app-icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg,var(--accent-bg),var(--surface-2)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-sm); color: var(--accent); }
.app-icon .ico { width: 24px; height: 24px; }
.app-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex-shrink: 0; box-shadow: var(--shadow-sm); display: block; border: 1px solid rgba(0,0,0,0.06); }
:root[data-theme="dark"] .app-logo { border-color: rgba(255,255,255,0.08); }
.app-card-compact .app-logo { width: 44px; height: 44px; border-radius: 11px; }
.app-info { flex: 1; min-width: 0; }
.app-name { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-dev { font-size: 0.78rem; color: var(--text-3); margin-bottom: 0.4rem; }
.app-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.app-tag { font-size: 0.68rem; padding: 0.1rem 0.45rem; border-radius: 4px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.app-meta { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; font-size: 0.78rem; color: var(--text-3); }
.app-meta .rating { color: #F59E0B; font-weight: 600; }
.app-card-compact { padding: 0.875rem 1rem; gap: 0.75rem; border-radius: var(--radius); }
.app-card-compact .app-icon { width: 44px; height: 44px; border-radius: 11px; font-size: 1.2rem; }
.app-card-compact .app-name { font-size: 0.875rem; }
.app-card-compact .app-dev { font-size: 0.72rem; }
.app-card-compact .app-meta { margin-top: 0.3rem; gap: 0.5rem; font-size: 0.72rem; }

/* ── Grid ── */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(320px,100%),1fr)); gap: 1rem; min-width: 0; }
.app-list { display: flex; flex-direction: column; gap: 0.5rem; }

/* ── Section ── */
.section { padding: 3.5rem 0; }
.section+.section { padding-top: 0; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem; gap: 1rem; }
.section-title { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; gap: 0.5rem; }
.section-title .ico { color: var(--accent); }

/* ── Related Categories ── */
.related-categories { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.related-categories a { padding: 0.6rem 1.25rem; border: 1px solid var(--border); border-radius: 99px; font-size: 0.85rem; color: var(--text-2); background: var(--surface); transition: var(--tr); white-space: nowrap; }
.related-categories a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.section-more { font-size: 0.8rem; color: var(--accent); font-weight: 500; transition: var(--tr); white-space: nowrap; display: inline-flex; align-items: center; gap: 0.25rem; }
.section-more .ico { width: 14px; height: 14px; transition: transform 0.2s ease; }
.section-more:hover { color: #4d6a4d; }
.section-more:hover .ico { transform: translateX(2px); }

/* ── Hero ── */
.hero { padding: 3.5rem 0 2rem; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--accent-bg) 0%, var(--bg) 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -60%; right: -20%; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(92,122,92,0.08), transparent 70%); pointer-events: none; }
:root[data-theme="dark"] .hero { background: linear-gradient(180deg, rgba(134,169,134,0.06) 0%, var(--bg) 100%); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.hero h1 { margin-bottom: 1rem; }
.hero-desc { color: var(--text-2); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.75rem; max-width: 480px; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.hero-stat-num { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; }
.hero-stat-label { font-size: 0.78rem; color: var(--text-3); margin-top: 0.1rem; }
.hero-visual { display: flex; align-items: center; justify-content: center; position: relative; }
.hero-mockup { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 1.25rem; width: 100%; max-width: 300px; box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.mockup-bar { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.75rem; padding: 0 0.25rem; }
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.mockup-dot:nth-child(1) { background: #FF5F57; }
.mockup-dot:nth-child(2) { background: #FEBC2E; }
.mockup-dot:nth-child(3) { background: #28C840; }
.mockup-app { display: flex; gap: 0.6rem; padding: 0.5rem 0; border-top: 1px solid var(--border); }
.mockup-icon { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg,var(--accent-bg),var(--surface-2)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); overflow: hidden; }
.mockup-icon .ico { width: 18px; height: 18px; }
.mockup-text { font-size: 0.72rem; color: var(--text-2); line-height: 1.5; }
.mockup-title { font-weight: 600; color: var(--text); }
.hero-deco { position: absolute; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle,rgba(92,122,92,0.12),transparent 70%); pointer-events: none; }
.hero-deco-1 { top: -50px; right: -30px; }
.hero-deco-2 { bottom: -40px; left: -20px; background: radial-gradient(circle,rgba(196,125,90,0.1),transparent 70%); }

/* Hero VIP Showcase */
.hero-showcase { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1.25rem; width: 100%; max-width: 320px; box-shadow: var(--shadow-lg); position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.hero-showcase-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 700; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.25rem; }
.hero-showcase-label .ico { width: 14px; height: 14px; color: #F59E0B; }
.hero-showcase-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; border-radius: var(--radius-sm); transition: var(--tr); text-decoration: none; color: inherit; }
.hero-showcase-item:hover { background: var(--accent-bg); }
.hero-showcase-icon { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.06); }
.hero-showcase-icon-placeholder { background: linear-gradient(135deg,var(--accent-bg),var(--surface-2)); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.hero-showcase-icon-placeholder .ico { width: 18px; height: 18px; }
.hero-showcase-info { flex: 1; min-width: 0; }
.hero-showcase-name { font-size: 0.82rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-showcase-mod { font-size: 0.68rem; color: var(--accent-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Category Pills ── */
.cat-pills { display: flex; gap: 0.5rem; flex-wrap: nowrap; width: 100%; overflow-x: auto; overflow-y: hidden; padding-bottom: 0.25rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 1rem; border-radius: 99px; font-size: 0.82rem; font-weight: 500; white-space: nowrap; flex: 0 0 auto; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); transition: var(--tr); cursor: pointer; }
.cat-pill .ico { width: 14px; height: 14px; }
.cat-pill:hover,.cat-pill.active { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); }
.cat-pill.active { font-weight: 600; }

/* ── Why Choose Us Cards ── */
.trust-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; transition: var(--tr); position: relative; overflow: hidden; }
.trust-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: 0; transition: opacity 0.3s ease; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.trust-card:hover { border-color: rgba(92,122,92,0.2); box-shadow: var(--shadow); transform: translateY(-2px); }
.trust-card:hover::after { opacity: 1; }
.trust-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.trust-card-icon .ico { width: 24px; height: 24px; }
.trust-card-icon.shield { background: var(--accent-bg); color: var(--accent); }
.trust-card-icon.zap { background: #FEF3C7; color: #D97706; }
.trust-card-icon.refresh { background: #DBEAFE; color: #2563EB; }
.trust-card h3 { margin-bottom: 0.5rem; }
.trust-card p { font-size: 0.88rem; color: var(--text-2); line-height: 1.7; }

/* ── Featured Card ── */
.featured-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 280px 1fr; transition: var(--tr); cursor: pointer; text-decoration: none; color: inherit; }
.featured-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: rgba(92,122,92,0.25); }
.featured-img { height: 100%; min-height: 200px; background: linear-gradient(135deg,#E8F0FE 0%,#D4E8D1 100%); display: flex; align-items: center; justify-content: center; }
.featured-body { padding: 1.75rem; display: flex; flex-direction: column; justify-content: center; }
.featured-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 0.5rem; }
.featured-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.4rem; }
.featured-dev { font-size: 0.82rem; color: var(--text-3); margin-bottom: 0.75rem; }
.featured-desc { font-size: 0.88rem; color: var(--text-2); line-height: 1.7; margin-bottom: 1rem; }
.featured-changes { background: var(--surface-2); border-radius: var(--radius-sm); padding: 0.75rem 1rem; font-size: 0.8rem; color: var(--text-2); line-height: 1.6; margin-bottom: 1rem; }
.featured-changes strong { color: var(--text); }
.featured-meta { display: flex; gap: 1.5rem; font-size: 0.8rem; color: var(--text-3); }
.featured-meta .rating { color: #F59E0B; font-weight: 600; }

/* ── Sidebar Layout ── */
.layout-sidebar { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; padding: 2.5rem 0; }
.layout-sidebar > * { min-width: 0; }
.sidebar { position: sticky; top: 80px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.sidebar-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding: 1rem 1.25rem 0.5rem; }
.sidebar-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 1.25rem; font-size: 0.875rem; color: var(--text-2); transition: var(--tr); cursor: pointer; min-width: 0; overflow-wrap: anywhere; text-decoration: none; }
.sidebar-item:hover { background: var(--surface-2); color: var(--text); }
.sidebar-item.active { background: var(--accent-bg); color: var(--accent); font-weight: 500; }
.sidebar-item .count { margin-left: auto; flex-shrink: 0; font-size: 0.72rem; background: var(--surface-2); padding: 0.1rem 0.4rem; border-radius: 4px; color: var(--text-3); }
.sidebar-item.active .count { background: rgba(92,122,92,0.15); color: var(--accent); }

/* ── Detail Page ── */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; padding: 2.5rem 0; }
.detail-sidebar { position: sticky; top: 80px; }
.detail-title { font-size: 1.6rem; margin-bottom: 0.3rem; }
.detail-dev { font-size: 0.85rem; color: var(--text-3); margin-bottom: 0.75rem; }
.detail-rating { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-2); margin-bottom: 1.25rem; }
.stars { color: #F59E0B; letter-spacing: 1px; }
.rating-num { font-weight: 600; }
.detail-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.detail-tab { padding: 0.6rem 1.25rem; font-size: 0.875rem; font-weight: 500; color: var(--text-3); border-bottom: 2px solid transparent; transition: var(--tr); cursor: pointer; margin-bottom: -1px; }
.detail-tab:hover { color: var(--text); }
.detail-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.detail-section { margin-bottom: 1.5rem; }
.detail-section-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.75rem; }
.detail-text { font-size: 0.9rem; color: var(--text-2); line-height: 1.8; }
.changelog-item { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; padding: 0.875rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.changelog-item:last-child { border-bottom: none; }
.changelog-ver { font-weight: 600; color: var(--accent); font-size: 0.78rem; white-space: nowrap; }
.changelog-date { font-size: 0.72rem; color: var(--text-3); margin-top: 0.1rem; }
.changelog-text { color: var(--text-2); line-height: 1.6; }
.screenshot-scroll { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: thin; }
.screenshot-scroll::-webkit-scrollbar { height: 4px; }
.screenshot { width: 160px; height: 280px; border-radius: var(--radius); background: linear-gradient(180deg,var(--surface-2),var(--accent-bg)); flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); cursor: pointer; transition: var(--tr); overflow: hidden; }
.screenshot:hover { transform: scale(1.03); box-shadow: var(--shadow); }
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid var(--border); }
.info-table tr:last-child { border-bottom: none; }
.info-table td { padding: 0.6rem 0; font-size: 0.85rem; }
.info-table td:first-child { color: var(--text-3); width: 120px; }
.info-table td:last-child { color: var(--text-2); }

/* ── Download Card ── */
.download-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.download-card-header { padding: 1.25rem; border-bottom: 1px solid var(--border); display: flex; gap: 1rem; align-items: center; }
.download-card-body { padding: 1.25rem; }
.download-version { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; }
.download-size { font-size: 0.82rem; color: var(--text-3); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.35rem; }
.download-size .ico { width: 14px; height: 14px; }
.download-btn { width: 100%; padding: 0.8rem; background: var(--accent); color: #fff; border-radius: var(--radius); font-size: 0.95rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: var(--tr); text-decoration: none; }
.download-btn .ico { width: 18px; height: 18px; }
.download-btn:hover { background: #4d6a4d; transform: translateY(-1px); box-shadow: var(--shadow); }
.download-btn:active { transform: translateY(0); }
.download-safety { margin-top: 1rem; padding: 0.875rem; background: var(--accent-bg); border-radius: var(--radius-sm); font-size: 0.8rem; color: var(--text-2); }
.safety-header { display: flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--accent); margin-bottom: 0.4rem; font-size: 0.82rem; }
.safety-header .ico { width: 16px; height: 16px; }
.safety-check { display: flex; align-items: center; gap: 0.4rem; padding: 0.15rem 0; font-size: 0.78rem; line-height: 1.6; color: var(--text-2); }
.safety-check .ico { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.mod-features { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.mod-feature { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.4rem 0; font-size: 0.82rem; color: var(--text-2); }
.mod-feature::before { content: ''; display: inline-block; width: 16px; height: 16px; flex-shrink: 0; margin-top: 0.1em; background: var(--accent); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

/* ── Sidebar Cards (Detail) ── */
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-top: 1rem; }
.sidebar-card-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.75rem; }
.version-row { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border); gap: 0.5rem; }
.version-row:last-child { border-bottom: none; }
.version-name { font-size: 0.85rem; font-weight: 600; }
.version-size { font-size: 0.72rem; color: var(--text-3); }
.share-buttons { display: flex; gap: 0.5rem; }
.share-btn { flex: 1; padding: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); font-size: 0.8rem; cursor: pointer; color: var(--text-2); transition: var(--tr); display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; }
.share-btn .ico { width: 14px; height: 14px; }
.share-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.detail-meta-line { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--text-3); display: flex; align-items: center; gap: 0.35rem; }
.detail-meta-line .ico { width: 14px; height: 14px; }

/* ── Category Page ── */
.cat-hero { padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--border); }
.cat-hero-inner { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 0.75rem; }
.cat-hero-icon { width: 60px; height: 60px; background: linear-gradient(135deg,var(--accent-bg),var(--surface-2)); border-radius: 16px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); flex-shrink: 0; color: var(--accent); }
.cat-hero-icon .ico { width: 28px; height: 28px; }
.cat-hero-content { min-width: 0; }
.cat-hero h1 { margin-bottom: 0.4rem; }
.cat-hero p { color: var(--text-2); font-size: 0.95rem; }
.cat-count { font-size: 0.82rem; color: var(--text-3); margin-top: 0.5rem; }
.filter-bar { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-bar > * { min-width: 0; }
.filter-select { padding: 0.4rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.82rem; background: var(--surface); color: var(--text-2); outline: none; transition: var(--tr); cursor: pointer; }
.filter-select:focus { border-color: var(--accent); }
.sort-tabs { display: flex; gap: 0.25rem; background: var(--surface-2); padding: 0.25rem; border-radius: var(--radius-sm); }
.sort-tab { padding: 0.3rem 0.75rem; border-radius: 6px; font-size: 0.8rem; color: var(--text-2); transition: var(--tr); cursor: pointer; }
.sort-tab.active { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: var(--shadow-sm); }

/* ── Pagination ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.35rem; margin-top: 2.5rem; padding: 1rem 0; }
.page-btn { min-width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: 0.875rem; color: var(--text-2); display: flex; align-items: center; justify-content: center; transition: var(--tr); text-decoration: none; }
.page-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.page-btn.disabled { opacity: 0.4; cursor: default; pointer-events: none; }
.page-ellipsis { color: var(--text-3); padding: 0 0.25rem; }
.pagination-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; gap: 1rem; }
.pagination-info { font-size: 0.85rem; color: var(--text-3); }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-3); padding: 1rem 0; }
.breadcrumb a { color: var(--text-3); transition: var(--tr); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { font-size: 0.7rem; }
.breadcrumb .current { color: var(--text-2); }

/* ── Empty State ── */
.empty-state { grid-column: 1 / -1; text-align: center; padding: 4rem 1rem; color: var(--text-3); }
.empty-state-icon { margin-bottom: 1rem; color: var(--text-3); }
.empty-state-icon .ico { width: 48px; height: 48px; }

/* ── Back to Top ── */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); cursor: pointer; opacity: 0; transform: translateY(12px); transition: opacity 0.3s ease, transform 0.3s ease; z-index: 100; border: none; }
.back-to-top .ico { width: 18px; height: 18px; }
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: #4d6a4d; box-shadow: 0 4px 16px rgba(92,122,92,0.3); transform: translateY(-2px); }
@media (max-width: 768px) { .back-to-top { bottom: 1.5rem; right: 1rem; width: 36px; height: 36px; } }

/* ── Download Button Glow ── */
.download-btn { box-shadow: 0 4px 14px rgba(92,122,92,0.25); }
.download-btn:hover { box-shadow: 0 6px 20px rgba(92,122,92,0.35); }

/* ── App Logo Hover ── */
.app-card:hover .app-logo { transform: scale(1.05); }
.app-logo { transition: transform 0.25s ease; }

/* ── Section Gradient Divider ── */
.section-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 0 auto; max-width: 60%; }

/* ── Toast ── */
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100%); background: var(--text); color: var(--bg); padding: 0.75rem 1.5rem; border-radius: 99px; font-size: 0.85rem; font-weight: 500; z-index: 9999; opacity: 0; transition: all 0.3s ease; pointer-events: none; box-shadow: var(--shadow-lg); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── Footer ── */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3rem 0 2rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-3); line-height: 1.7; margin-top: 0.75rem; max-width: 260px; }
.footer-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.75rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-2); transition: var(--tr); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--text-3); flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom a { color: var(--text-3); transition: var(--tr); }
.footer-bottom a:hover { color: var(--accent); }
.footer-heart { display: inline-flex; align-items: center; gap: 0.3rem; }
.footer-heart .ico { width: 14px; height: 14px; color: #EF4444; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .layout-sidebar { grid-template-columns: 200px 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr 300px; }
  .featured-card { grid-template-columns: 220px 1fr; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { display: none; }
  .hero-stats { gap: 1.5rem; }
  .app-grid { grid-template-columns: 1fr; gap: 0.75rem; width: 100%; }
  .app-card { width: 100%; padding: 1rem; gap: 0.75rem; min-width: 0; }
  .app-icon { width: 48px; height: 48px; flex-shrink: 0; }
  .app-icon .ico { width: 20px; height: 20px; }
  .app-name { font-size: 0.875rem; white-space: normal; overflow: visible; text-overflow: initial; }
  .app-dev { font-size: 0.72rem; }
  .app-meta { gap: 0.5rem; font-size: 0.72rem; flex-wrap: wrap; min-width: 0; }
  .app-meta span { min-width: 0; }
  .layout-sidebar { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem 0; }
  .sidebar { position: static; width: 100%; }
  .sidebar-title { font-size: 0.875rem; font-weight: 600; text-transform: none; letter-spacing: normal; color: var(--text); padding: 0.75rem 1rem 0.35rem; }
  .sidebar-item { padding: 0.5rem 1rem; font-size: 0.82rem; }
  .sidebar-item .count { font-size: 0.7rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-img { min-height: 160px; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .header-search { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: 64px; left: 0; right: 0; z-index: 250;
    display: none; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); padding: 0.4rem 1rem 0.9rem;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; border-radius: 10px; padding: 0.75rem 0.85rem; font-size: 0.92rem; }
  body.menu-open { overflow: hidden; }
  h1 { font-size: 1.8rem; }
  .section { padding: 2.5rem 0; }
  .section-header { flex-wrap: wrap; }
  .section-title { font-size: 1.1rem; }
  .pagination { flex-wrap: wrap; gap: 0.25rem; }
  .page-btn { min-width: 32px; height: 32px; font-size: 0.8rem; }
  .related-categories { gap: 0.5rem; }
  .related-categories a { padding: 0.5rem 1rem; font-size: 0.8rem; }
  .cat-hero { padding: 2rem 0 1.5rem; }
  .cat-hero-inner { align-items: flex-start; gap: 0.9rem; margin-bottom: 0; }
  .cat-hero-icon { width: 52px; height: 52px; border-radius: 14px; }
  .cat-hero-icon .ico { width: 24px; height: 24px; }
  .breadcrumb { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .breadcrumb::-webkit-scrollbar { display: none; }
  .filter-bar { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .cat-pills { order: 1; }
  .filter-select { order: 2; width: 100%; }
  .trust-card { padding: 1.5rem; }
}
@media (max-width: 480px) {
  .section { padding: 2.5rem 0; }
  .hero { padding: 2rem 0 1.5rem; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .pagination { gap: 0.25rem; }
  .page-btn { min-width: 32px; height: 32px; font-size: 0.8rem; }
  .cat-hero-inner { flex-direction: column; }
  .cat-hero-content h1 { font-size: 1.45rem; }
}
