/* ============================================================
   APKopia — Redesign Design System
   Dark, modern app-store aesthetic with refined green accent
   ============================================================ */

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

:root {
  /* Surfaces — cool dark slate, subtly toned */
  --bg:          oklch(0.165 0.012 256);
  --bg-2:        oklch(0.195 0.014 256);
  --surface:     oklch(0.225 0.015 256);
  --surface-2:   oklch(0.265 0.016 256);
  --surface-hi:  oklch(0.305 0.017 256);
  --border:      oklch(0.32 0.014 256);
  --border-soft: oklch(0.28 0.012 256);

  /* Text */
  --text:        oklch(0.97 0.004 256);
  --text-mid:    oklch(0.80 0.010 256);
  --text-dim:    oklch(0.64 0.012 256);
  --text-faint:  oklch(0.52 0.012 256);

  /* Accent — refined emerald/green (brand) */
  --accent:      oklch(0.80 0.17 150);
  --accent-2:    oklch(0.72 0.16 158);
  --accent-ink:  oklch(0.22 0.06 150);
  --accent-glow: oklch(0.80 0.17 150 / 0.22);
  --accent-soft: oklch(0.80 0.17 150 / 0.12);

  /* Secondary accents (same C/L family, different hue) */
  --blue:        oklch(0.74 0.13 250);
  --amber:       oklch(0.82 0.13 80);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Shadow */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 8px 24px -8px oklch(0 0 0 / 0.5);
  --shadow-lg: 0 24px 60px -20px oklch(0 0 0 / 0.65);

  /* Theming hooks (overridden by light theme) */
  --glow-1:    oklch(0.80 0.17 150 / 0.07);
  --glow-2:    oklch(0.74 0.13 250 / 0.06);
  --header-bg: oklch(0.165 0.012 256 / 0.82);
  --ph-a:      oklch(0.30 0.015 256);
  --ph-b:      oklch(0.265 0.016 256);
  --ph-lbl:    oklch(0.165 0.012 256 / 0.75);

  --container: 1240px;
  --gap: 22px;
}

/* ---- Light theme (theme toggles html.dark-mode; default is dark mockup, toggle -> light) ---- */
html.dark-mode {
  --bg:          oklch(0.975 0.005 256);
  --bg-2:        oklch(0.955 0.006 256);
  --surface:     oklch(1 0 0);
  --surface-2:   oklch(0.975 0.005 256);
  --surface-hi:  oklch(0.95 0.006 256);
  --border:      oklch(0.90 0.010 256);
  --border-soft: oklch(0.925 0.007 256);

  --text:        oklch(0.26 0.020 256);
  --text-mid:    oklch(0.42 0.020 256);
  --text-dim:    oklch(0.54 0.018 256);
  --text-faint:  oklch(0.62 0.016 256);

  --accent:      oklch(0.58 0.15 150);
  --accent-2:    oklch(0.53 0.15 156);
  --accent-ink:  oklch(1 0 0);
  --accent-glow: oklch(0.58 0.15 150 / 0.25);
  --accent-soft: oklch(0.58 0.15 150 / 0.12);

  --blue:        oklch(0.52 0.17 250);
  --amber:       oklch(0.56 0.14 70);

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.06);
  --shadow-md: 0 10px 28px -10px oklch(0.45 0.03 256 / 0.18);
  --shadow-lg: 0 24px 60px -20px oklch(0.45 0.03 256 / 0.22);

  --glow-1:    oklch(0.80 0.16 150 / 0.10);
  --glow-2:    oklch(0.74 0.13 250 / 0.08);
  --header-bg: oklch(1 0 0 / 0.82);
  --ph-a:      oklch(0.90 0.008 256);
  --ph-b:      oklch(0.94 0.006 256);
  --ph-lbl:    oklch(1 0 0 / 0.78);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--glow-1), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, var(--glow-2), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.brand b { color: var(--accent); font-weight: 700; }

.searchbar {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  transition: border-color .2s, background .2s;
}
.searchbar:focus-within { border-color: var(--accent); background: var(--surface); }
.searchbar svg { flex-shrink: 0; opacity: .7; }
.searchbar input {
  flex: 1;
  background: none; border: none; outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}
.searchbar input::placeholder { color: var(--text-faint); }

.header-nav { display: flex; gap: 2px; margin-left: auto; }
.header-actions { display: flex; gap: 8px; margin-left: 6px; }
.header-nav a {
  padding: 9px 15px;
  border-radius: var(--r-sm);
  color: var(--text-mid);
  font-weight: 500;
  font-size: 14px;
  transition: background .15s, color .15s;
}
.header-nav a:hover { background: var(--surface); color: var(--text); }
.header-nav a.active { color: var(--accent); }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  color: var(--text-mid);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface); color: var(--text); }

/* ============================================================
   Section heading
   ============================================================ */
.section { padding: 40px 0 8px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  display: flex; align-items: center; gap: 11px;
  font-size: 20px;
}
.section-title .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.section-title .sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400; font-size: 13px; color: var(--text-faint);
  margin-left: 4px;
}
.see-all {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--text-dim);
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border-soft);
  transition: all .15s;
}
.see-all:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ============================================================
   App icon (gradient tile placeholder)
   ============================================================ */
.app-icon {
  border-radius: 22%;
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #fff;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.18), var(--shadow-sm);
}
.app-icon::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, oklch(1 0 0 / 0.16), transparent 55%);
}
.app-icon span { position: relative; z-index: 1; letter-spacing: -0.02em; }

/* ============================================================
   Card — grid item (icon on top)
   ============================================================ */
.card-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.card-row::-webkit-scrollbar { height: 8px; }
.card-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.card-row::-webkit-scrollbar-track { background: transparent; }

.app-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  scroll-snap-align: start;
  transition: transform .18s ease, border-color .18s, background .18s, box-shadow .18s;
}
.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}
.app-card .app-icon { width: 72px; height: 72px; font-size: 26px; }
.app-card .ac-name {
  font-weight: 600; font-size: 14px; text-align: center;
  color: var(--text);
  width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-card .ac-meta {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: 100%;
}
.tag {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  letter-spacing: .02em;
}
.tag.app { background: oklch(0.74 0.13 250 / 0.14); color: var(--blue); }
.ac-date { font-size: 11.5px; color: var(--text-faint); }

/* horizontal list card (icon left, text right) */
.list-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 14px 16px;
  transition: border-color .15s, background .15s, transform .15s;
}
.list-card:hover { border-color: var(--accent); background: var(--surface-2); transform: translateX(2px); }
.list-card .app-icon { width: 54px; height: 54px; font-size: 20px; }
.lc-body { min-width: 0; flex: 1; }
.lc-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-sub { font-size: 12.5px; color: var(--text-dim); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.lc-ver { font-size: 13px; font-weight: 600; color: var(--text-mid); font-variant-numeric: tabular-nums; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all .15s;
}
.btn-primary {
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 28px var(--accent-glow); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); }

/* ============================================================
   Featured flag on card
   ============================================================ */
.app-card { position: relative; }
.app-card.is-feat { border-color: var(--accent); background: linear-gradient(160deg, var(--accent-soft), var(--surface) 60%); }
.feat-flag {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
}

/* ============================================================
   Sidebar blocks (home + detail right rail)
   ============================================================ */
.aside-block {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); padding: 16px 16px 10px; margin-bottom: 18px;
}
.aside-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; }
.aside-head h3 { font-size: 16px; display: flex; align-items: center; gap: 9px; }
.aside-head h3::before { content:""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.aside-head a { font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.aside-head a:hover { color: var(--accent); }
.side-list { display: flex; flex-direction: column; }
.side-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-radius: 10px; transition: background .15s; }
.side-row:hover { background: var(--bg-2); }
.side-row .app-icon { width: 40px; height: 40px; font-size: 14px; }
.sr-rank { font-family: 'Space Grotesk'; font-weight: 700; font-size: 13px; color: var(--text-faint); width: 18px; text-align: center; }
.sr-name { flex: 1; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-ver { font-size: 12px; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 2px 6px; }
.dev-pill { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border-soft); font-size: 12.5px; font-weight: 600; transition: all .15s; }
.dev-pill:hover { border-color: var(--accent); color: var(--accent); }
.dev-pill .app-icon { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-2);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 48px;
  padding: 52px 0 36px;
}
.footer-about { max-width: 420px; }
.footer-about p { color: var(--text-dim); font-size: 13.5px; line-height: 1.7; margin: 14px 0 0; }
.footer-stats { display: flex; gap: 26px; margin-top: 22px; }
.footer-stats .num { font-family: 'Space Grotesk'; font-size: 21px; font-weight: 700; color: var(--accent); }
.footer-stats .lbl { font-size: 12px; color: var(--text-faint); }
.social { display: flex; gap: 9px; margin-top: 22px; }
.soc { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--border-soft); font-family: 'Space Grotesk'; font-weight: 700; color: var(--text-mid); transition: all .15s; }
.soc:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 12px; }
.fcol-links { display: flex; flex-direction: column; }
.fcol-links a { color: var(--text-dim); font-size: 13.5px; padding: 4px 0; transition: color .15s; }
.fcol-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--text-faint); font-size: 13px;
}

/* ============================================================
   Utilities
   ============================================================ */
.grid-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.divider { height: 1px; background: var(--border-soft); margin: 8px 0; }
.muted { color: var(--text-dim); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--border-soft);
  color: var(--text-mid);
  white-space: nowrap;
}

/* placeholder media */
.media-ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, var(--ph-a) 0 12px, var(--ph-b) 12px 24px);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  overflow: hidden;
}
.media-ph .lbl {
  font-family: 'Space Grotesk', monospace;
  font-size: 12px; letter-spacing: .06em;
  color: var(--text-dim);
  background: var(--ph-lbl);
  padding: 5px 12px; border-radius: 999px;
  text-transform: uppercase;
}

/* ---- Theme toggle icon ---- */
.theme-toggle .ico-sun { display: block; }
.theme-toggle .ico-moon { display: none; }
[data-theme="light"] .theme-toggle .ico-sun { display: none; }
[data-theme="light"] .theme-toggle .ico-moon { display: block; }

/* ---- Responsive aside (tablet: 3-up row) ---- */
@media (max-width: 1040px) and (min-width: 721px) {
  #aside-slot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
  #aside-slot .aside-block { margin-bottom: 0; }
}

@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .header-nav { display: none; }
  .searchbar { max-width: none; }
}
@media (max-width: 620px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 12px; }
  .brand { font-size: 19px; }
  .searchbar { order: 3; flex-basis: 100%; height: 40px; }
  .header-actions { margin-left: auto; }
  .section { padding: 30px 0 8px; }
  .section-title { font-size: 18px; }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .footer-stats { gap: 18px; }
}

/* ============================================================
   WordPress integration + Home hero/layout (ported from mockup)
   ============================================================ */

/* real post thumbnail inside the icon tile */
.app-card figure.app-icon { width: 72px; height: 72px; padding: 0; overflow: hidden; margin: 0; }
.app-card figure.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-card figure.app-icon::after { display: none; }
.app-card.is-online { position: relative; }
.app-card.is-online::before {
  content: ""; position: absolute; top: 12px; left: 12px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.side-row .app-icon, .hero-mini .app-icon { padding: 0; overflow: hidden; }
.side-row .app-icon img, .hero-mini .app-icon img, .dev-pill .app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-card .ac-meta .tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* HERO */
.hero { padding: 36px 0 8px; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.hero-feature {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border-soft);
  background: radial-gradient(700px 320px at 82% 16%, var(--accent-soft), transparent 60%), linear-gradient(120deg, var(--bg-2), var(--surface));
  padding: 34px 38px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px;
  text-decoration: none; color: var(--text);
}
.hero-feature::before { content:""; position:absolute; inset:0; background: repeating-linear-gradient(135deg, oklch(1 0 0 / 0.025) 0 14px, transparent 14px 28px); pointer-events:none; }
.hero-feature > * { position: relative; }
.hero-eyebrow { display:inline-flex; align-items:center; gap:8px; font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--accent); margin-bottom:14px; }
.hero-eyebrow .pulse { width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px var(--accent-soft); }
.hero-feature h1 { font-family:'Space Grotesk',sans-serif; font-size:38px; max-width:14ch; margin-bottom:10px; }
.hero-feature p { color:var(--text-mid); font-size:14.5px; max-width:44ch; margin:0 0 22px; }
.hero-cta { display:flex; gap:12px; flex-wrap: wrap; }
.hero-side { display:grid; grid-template-rows:repeat(3,1fr); gap:12px; }
.hero-mini { display:flex; align-items:center; gap:14px; background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-lg); padding:13px 15px; transition:all .15s; text-decoration:none; color:var(--text); }
.hero-mini:hover { border-color:var(--accent); transform:translateX(3px); background:var(--surface-2); }
.hero-mini .hm-rank { font-family:'Space Grotesk'; font-size:20px; font-weight:700; color:var(--text-faint); width:24px; flex-shrink:0; }
.hero-mini .app-icon { width:48px; height:48px; font-size:17px; flex-shrink:0; }
.hero-mini > div:last-child { min-width:0; }
.hero-mini .hm-name { font-weight:600; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hero-mini .hm-sub { font-size:12px; color:var(--text-dim); }

/* category quick strip */
.cat-strip { display:flex; gap:9px; flex-wrap:wrap; padding:26px 0 4px; }
.cat-pill { display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border-radius:999px; background:var(--surface); border:1px solid var(--border-soft); font-weight:600; font-size:13px; color:var(--text-mid); text-decoration:none; transition:all .15s; }
.cat-pill:hover { border-color:var(--accent); color:var(--accent); background:var(--accent-soft); }
.cat-pill .ico { width:8px; height:8px; border-radius:2px; }

/* home 2-col */
.home-grid { display:grid; grid-template-columns: minmax(0,1fr) 320px; gap:34px; align-items:start; padding-top:8px; }
.home-main { min-width:0; }
.home-aside { display: flex; flex-direction: column; }

/* developer pill image sizing in aside */
.dev-pill .app-icon { width: 28px; height: 28px; }

@media (max-width: 1040px){ .home-grid{ grid-template-columns:1fr; } }
@media (max-width: 1040px) and (min-width: 721px){
  .home-aside { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; align-items:start; }
  .home-aside .aside-block { margin-bottom:0; }
}
@media (max-width: 720px){ .home-aside{ display:none; } }
@media (max-width: 900px){ .hero-grid{ grid-template-columns:1fr; } .hero-feature h1{ font-size:30px; } }
@media (max-width: 480px){ .hero-feature{ padding:26px 24px; min-height:auto; } .hero-feature h1{ font-size:26px; } }

/* ============================================================
   Archive / category (Apkopia redesign)
   ============================================================ */
.dc-archive { padding-bottom: 10px; }
.page-head { padding: 30px 0 6px; }
.page-head h1 { font-family:'Space Grotesk',sans-serif; font-size:30px; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.page-head h1 .dot { width:11px; height:11px; }
.page-head .count, .dc-archive-count { font-family:'Plus Jakarta Sans',sans-serif; font-weight:600; font-size:14px; color:var(--text-faint); }
.page-head p, .dc-archive-description { color:var(--text-dim); margin:8px 0 0; font-size:14.5px; }
.archive-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 0; margin-top:8px; border-bottom:1px solid var(--border-soft); color:var(--text-dim); font-size:13.5px; font-weight:600; flex-wrap:wrap; }
.dc-archive .grid-apps { padding:24px 0; }
.archive-pagination { display:flex; gap:8px; justify-content:center; padding:14px 0 30px; flex-wrap:wrap; }
.archive-pagination a, .archive-pagination .page-numbers { min-width:40px; height:40px; padding:0 12px; display:grid; place-items:center; border-radius:10px; background:var(--surface); border:1px solid var(--border-soft); color:var(--text-mid); font-weight:600; font-size:14px; text-decoration:none; transition:all .15s; }
.archive-pagination a:hover { border-color:var(--accent); color:var(--accent); }
.archive-pagination .current { background:var(--accent); color:var(--accent-ink); border-color:var(--accent); }

/* ============================================================
   Single (app/game detail) — Apkopia redesign skin
   ============================================================ */
.dc-single { padding-bottom: 20px; }
.dc-single .container { max-width: var(--container); }
.dc-single-hero { padding-top: 22px; }
.post-summary-info { display: flex; flex-direction: column; gap: 18px; }
.post-title-wrap { display: flex; align-items: center; gap: 16px; }
.post-title-wrap .icon { width: 40px; height: 40px; color: var(--accent); flex-shrink: 0; }
.dc-single-eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.post-title-wrap h1 { font-family: 'Space Grotesk', sans-serif; font-size: 27px; margin-top: 4px; }

/* summary card */
.post-summary-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-xl); padding: 22px 24px; position: relative; }
.post-summary-card .status { position: absolute; top: 18px; right: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.thumb-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.thumb-title .titles { min-width: 0; }
.thumb-title .fa-title { font-size: 13px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.thumb-title .en-title { font-family: 'Space Grotesk', sans-serif; font-size: 20px; margin-top: 4px; }
.thumb-title figure.thumbnail { width: 84px; height: 84px; border-radius: 22%; overflow: hidden; flex-shrink: 0; margin: 0; box-shadow: var(--shadow-sm); }
.thumb-title figure.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.thumb-title figure.thumbnail .blurred-img { display: none; }

.stars-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
ul.meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; flex: 1; min-width: 240px; }
ul.meta li { display: flex; gap: 8px; font-size: 13.5px; flex-wrap: nowrap; }
ul.meta .ttl { color: var(--text-dim); white-space: nowrap; }
ul.meta .value { font-weight: 600; color: var(--text); white-space: nowrap; }
.star-ratings { display: flex; align-items: center; gap: 10px; }
.star-ratings .average-rating { font-family: 'Space Grotesk'; font-size: 26px; font-weight: 700; color: var(--accent); }
.stars-container, .star-ratings .stars { position: relative; display: inline-flex; }
.star-ratings .icon { width: 16px; height: 16px; color: var(--amber); }
.star-ratings .empty { display: flex; gap: 2px; }
.star-ratings .avg { position: absolute; top: 0; left: 0; display: flex; gap: 2px; overflow: hidden; white-space: nowrap; }

/* action buttons row */
.post-dl-bookmark-links { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.post-dl-bookmark-links .bookmark-btn, .post-dl-bookmark-links .like-btn, .post-dl-bookmark-links .share-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer;
}
.post-dl-bookmark-links .bookmark-btn:hover, .post-dl-bookmark-links .like-btn:hover, .post-dl-bookmark-links .share-btn:hover { border-color: var(--accent); color: var(--accent); }
.post-dl-bookmark-links .icon { width: 16px; height: 16px; }
.post-dl-bookmark-links .bookmark-black { display: none; }

/* content typography */
.post-content { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-xl); padding: 26px 28px; margin-top: 22px; color: var(--text-mid); line-height: 1.8; }
.post-content h2, .post-content h3 { font-family: 'Space Grotesk', sans-serif; color: var(--text); margin: 22px 0 12px; }
.post-content img { border-radius: var(--r-md); }
.post-content a { color: var(--accent); }
.post-top-notification { padding: 12px 16px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* generic single section blocks */
.changelog, .faq, .mode-features, .install-guide, .content-tips, .download-short-description, .single-gallery, .videoroid, .related, .related-articles {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-xl); padding: 24px 26px; margin-top: 22px;
}
.changelog h2, .faq h2, .mode-features h2, .install-guide h2, .related h2, .related-articles h2, .single-gallery h2, .user-reviews-wrapper h2 {
  font-family: 'Space Grotesk', sans-serif; font-size: 18px; margin-bottom: 14px;
}

/* DOWNLOAD BOX */
.downloadbox { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-xl); padding: 22px 24px; margin-top: 22px; }
.downloadbox-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.downloadbox-top h3 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; }
.downloadbox-top .en { font-size: 12.5px; color: var(--text-faint); }
.download-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.download-link { display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: var(--r-md); padding: 12px 14px; transition: all .15s; }
.download-link:hover { border-color: var(--accent); background: var(--surface-2); }
.download-link .qr { display: none; }
.download-btn { display: flex; align-items: center; gap: 12px; flex: 1; color: var(--text); text-decoration: none; font-weight: 600; }
.download-btn .icon { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.download-btn .txt { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.download-link.ads-download { background: transparent; border-style: dashed; }

/* specs table */
.post-metas-tabeld { width: 100%; border-collapse: collapse; margin-top: 18px; }
.post-metas-tabeld tr { border-bottom: 1px solid var(--border-soft); }
.post-metas-tabeld tr:last-child { border-bottom: none; }
.post-metas-tabeld th, .post-metas-tabeld td { padding: 11px 4px; font-size: 13.5px; text-align: left; vertical-align: middle; }
.post-metas-tabeld th { color: var(--text-dim); font-weight: 500; }
.post-metas-tabeld th span:not(.icn) { vertical-align: middle; }
.post-metas-tabeld .icn { display: inline-flex; margin-right: 8px; }
.post-metas-tabeld .icn .icon { width: 15px; height: 15px; color: var(--text-faint); }
.post-metas-tabeld td { text-align: right; font-weight: 600; color: var(--text); }
.post-metas-tabeld td a { color: var(--accent); }

/* gallery */
.single-gallery .gallery-items, .single-gallery .swiper-wrapper { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.single-gallery img { border-radius: var(--r-md); }

/* reviews + comments wrappers */
.user-reviews-wrapper, .single-user-comments-wrapper { margin-top: 22px; }
.user-reviews-wrapper .container, .single-user-comments-wrapper .container { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-xl); padding: 24px 26px; }

/* ============================================================
   Comments, forms, page content — generic skin
   ============================================================ */
.commentlist, .comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.commentlist li, .comment-list li { background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: var(--r-md); padding: 14px 16px; }
.comment-author, .comment-meta { font-size: 13px; color: var(--text-dim); }
.comment-author .fn, .comment-author b { color: var(--text); font-weight: 600; }
.comment-content { color: var(--text-mid); font-size: 14px; margin-top: 6px; line-height: 1.6; }
.comment-respond, #respond { margin-top: 18px; }
#respond h3, .comment-reply-title { font-family: 'Space Grotesk', sans-serif; font-size: 18px; margin-bottom: 12px; }

input[type="text"], input[type="email"], input[type="search"], input[type="password"], input[type="url"], input[type="tel"],
textarea, select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-family: inherit; font-size: 14px; padding: 11px 13px; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
button[type="submit"], .submit, input[type="submit"], .green {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 14.5px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  background: linear-gradient(140deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
  box-shadow: 0 6px 20px var(--accent-glow);
}
button[type="submit"]:hover, .submit:hover, input[type="submit"]:hover, .green:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* page template */
.dc-page .post-content { margin-top: 0; }

/* select2 / swiper inside the dark theme */
.select2-container--default .select2-selection--single { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; height: 44px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--text); line-height: 44px; }
.select2-dropdown { background: var(--surface); border: 1px solid var(--border); }
.select2-results__option { color: var(--text-mid); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--accent-soft); color: var(--accent); }

/* ============================================================
   Base reset + utility classes the theme markup relies on
   (re-added after dropping the legacy stylesheets)
   ============================================================ */
.icon, svg.icon { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.abs-fill { position: absolute; inset: 0; z-index: 2; }
.grid-row { display: flex; flex-wrap: wrap; }
.items-center, .grid-row.items-center, .centered-items, .grid-row.centered-items { align-items: center; }
.space-between, .grid-row.space-between { justify-content: space-between; }
.clearfix::after { content: ""; display: table; clear: both; }
.blurred-img { display: none !important; }
.sbs-media { display: flex; gap: 16px; align-items: center; }
.sbs-content { flex: 1; min-width: 0; }

/* Top-apps callout + "show more" */
.today-programs { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg); padding: 16px 20px; margin: 18px 0; font-size: 14px; color: var(--text-mid); }
.green-btn, .view-more a, .archive-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 13.5px; }
.green-btn:hover, .view-more a:hover, .archive-link:hover { background: var(--accent); color: var(--accent-ink); }
.view-more { display: flex; justify-content: center; padding: 20px 0; }

/* Developer (taxonomy) page */
.request-developer-page-link { display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; color: var(--text-dim); font-size: 13.5px; }
.request-developer-page-link:hover { color: var(--accent); }
.dev-banner { position: relative; height: 240px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border-soft); margin-top: 16px; background: var(--surface-2) center/cover no-repeat; }
.dev-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 0 32px; margin-top: -44px; position: relative; }
.dev-logo { width: 96px; height: 96px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; margin: 0 auto; box-shadow: var(--shadow-md); overflow: hidden; }
.dev-logo img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.dev-stat { text-align: center; }
.dev-stat.left { text-align: right; } .dev-stat.right { text-align: left; }
.dev-stat .n { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; }
.dev-stat .l { font-size: 12.5px; color: var(--text-faint); }
.dev-title { text-align: center; font-family: 'Space Grotesk', sans-serif; font-size: 30px; padding-top: 16px; }
.dev-website { display: block; text-align: center; color: var(--accent); font-size: 13.5px; margin-top: 4px; }
.dev-socials ul { display: flex; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 14px 0 0; }
.dev-socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--border-soft); color: var(--text-mid); font-size: 16px; }
.dev-socials a:hover { border-color: var(--accent); color: var(--accent); }
.dev-full-desc { max-width: 75ch; margin: 18px auto 0; text-align: center; color: var(--text-mid); line-height: 1.7; font-size: 14.5px; }
@media (max-width: 640px) { .dev-head { grid-template-columns: 1fr; } .dev-stat.left, .dev-stat.right { text-align: center; } }

/* ============================================================
   Bug fixes: theme toggle, search border, top-apps ranked list
   ============================================================ */
/* dark/light toggle — show only one glyph (default = dark theme) */
.dark-mode-button .moonsvg { display: none; }
.dark-mode-button .sunsvg { display: block; }
html.dark-mode .dark-mode-button .sunsvg { display: none; }
html.dark-mode .dark-mode-button .moonsvg { display: block; }

/* search input must not draw its own border on top of the pill */
.searchbar input, .site-header .searchbar input, .offcanvas-searchform input {
  border: 0 !important; background: transparent !important; padding: 0 !important;
  height: auto !important; box-shadow: none !important; border-radius: 0 !important;
}

/* Top charts — ranked list (matches mockup) */
.rank-list { display: flex; flex-direction: column; gap: 10px; padding: 8px 0 0; }
.rank-item { display: grid; grid-template-columns: 40px auto 1fr auto auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg); padding: 13px 18px; transition: all .15s; text-decoration: none; color: var(--text); }
.rank-item:hover { border-color: var(--accent); transform: translateX(3px); background: var(--surface-2); }
.rank-item .rk { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; color: var(--text-faint); text-align: center; }
.rank-item:nth-child(-n+3) .rk { color: var(--accent); }
.rank-item figure.app-icon { width: 52px; height: 52px; margin: 0; padding: 0; overflow: hidden; border-radius: 22%; }
.rank-item figure.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rank-item .ri-name { font-weight: 600; font-size: 15px; }
.rank-item .ri-cat { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.rank-item .ri-ver { font-size: 12.5px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.rank-item .ri-dl { text-align: right; }
.rank-item .ri-dl .v { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; color: var(--text); display: block; }
.rank-item .ri-dl .l { font-size: 11px; color: var(--text-faint); }
@media (max-width: 620px){ .rank-item { grid-template-columns: 32px auto 1fr auto; } .rank-item .ri-ver { display: none; } }
.top-grid { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:34px; align-items:start; padding-top:8px; }
.top-aside { display:flex; flex-direction:column; }
@media (max-width:1040px){ .top-grid { grid-template-columns:1fr; } .top-aside { display:none; } }

/* ============================================================
   Single (app/game detail) — mockup layout
   ============================================================ */
.dc-single .breadcrumb { display:flex; gap:8px; align-items:center; color:var(--text-faint); font-size:13px; padding:20px 0 0; flex-wrap:wrap; }
.dc-single .breadcrumb a:hover { color:var(--accent); }
.dc-single .breadcrumb .sep { opacity:.5; }
.detail-grid { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:34px; padding-top:18px; align-items:start; }
.detail-aside { position:sticky; top:84px; }
.app-hero { display:flex; gap:22px; align-items:center; background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-xl); padding:24px; }
.app-hero figure.app-icon { width:96px; height:96px; margin:0; padding:0; overflow:hidden; border-radius:22%; flex-shrink:0; }
.app-hero figure.app-icon img { width:100%; height:100%; object-fit:cover; display:block; }
.app-hero .ah-title { font-size:13px; color:var(--accent); font-weight:600; letter-spacing:.04em; text-transform:uppercase; margin-bottom:6px; }
.app-hero h1 { font-family:'Space Grotesk',sans-serif; font-size:26px; margin-bottom:8px; }
.app-hero .sub { color:var(--text-dim); font-size:14px; margin-bottom:13px; }
.meta-chips { display:flex; gap:8px; flex-wrap:wrap; }
.badge-mod { font-size:10px; font-weight:700; padding:3px 8px; border-radius:6px; background:var(--amber); color:#26200a; letter-spacing:.03em; align-self:center; }
.meta-list { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--border-soft); border:1px solid var(--border-soft); border-radius:var(--r-lg); overflow:hidden; margin-top:18px; }
.meta-cell { background:var(--surface); padding:14px 16px; }
.meta-cell .k { font-size:11.5px; color:var(--text-faint); margin-bottom:3px; }
.meta-cell .v { font-weight:600; font-size:14px; }
.meta-cell .v.accent { color:var(--accent); }
.share-row { display:flex; align-items:center; gap:10px; margin-top:16px; flex-wrap:wrap; }
.share-row .lbl { font-size:13px; color:var(--text-dim); }
.dc-single .block { background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-xl); padding:24px 26px; margin-top:22px; }
.dc-single .block h2 { font-family:'Space Grotesk',sans-serif; font-size:18px; margin-bottom:13px; display:flex; align-items:center; gap:10px; }
@media (max-width:1040px){ .detail-grid { grid-template-columns:1fr; } .detail-aside { position:static; } }
@media (max-width:560px){ .meta-list { grid-template-columns:1fr 1fr; } .app-hero { flex-direction:column; text-align:center; align-items:flex-start; } }

/* ============================================================
   Category browse (mockup) + mobile hamburger menu
   ============================================================ */
.browse-grid { display:grid; grid-template-columns:248px minmax(0,1fr); gap:30px; padding-top:22px; align-items:start; }
.cat-side { position:sticky; top:84px; }
.cat-side .cs-block { background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-lg); padding:8px; margin-bottom:16px; }
.cs-head { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--text-faint); font-weight:700; padding:12px 12px 8px; display:flex; align-items:center; gap:8px; }
.cs-head .icon { width:14px; height:14px; color:var(--accent); }
.cs-list { display:flex; flex-direction:column; padding:4px; }
.cs-item { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 12px; border-radius:9px; font-size:13.5px; color:var(--text-mid); transition:all .15s; }
.cs-item:hover { background:var(--bg-2); color:var(--text); }
.cs-item.active { background:var(--accent-soft); color:var(--accent); font-weight:600; }
.cs-item > span:first-child { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cs-item .n { font-size:11.5px; color:var(--text-faint); flex-shrink:0; }
.browse-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:16px; border-bottom:1px solid var(--border-soft); flex-wrap:wrap; color:var(--text-dim); font-size:13.5px; font-weight:600; }
.listing { display:flex; flex-direction:column; gap:12px; padding:20px 0; }
.row-item { display:grid; grid-template-columns:auto 1fr auto auto; gap:18px; align-items:center; background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-lg); padding:15px 18px; transition:all .15s; text-decoration:none; color:var(--text); }
.row-item:hover { border-color:var(--accent); background:var(--surface-2); transform:translateX(3px); }
.row-item figure.app-icon { width:58px; height:58px; margin:0; padding:0; overflow:hidden; border-radius:22%; }
.row-item figure.app-icon img { width:100%; height:100%; object-fit:cover; display:block; }
.ri-title { font-weight:600; font-size:15.5px; margin-bottom:3px; }
.ri-title .ver { font-weight:500; font-size:12px; color:var(--text-faint); }
.ri-desc { color:var(--text-dim); font-size:13px; line-height:1.5; max-width:64ch; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.ri-cols { display:flex; flex-direction:column; align-items:flex-end; gap:5px; min-width:120px; }
.ri-stat { font-size:12px; color:var(--text-faint); white-space:nowrap; }
.ri-stat b { color:var(--text-mid); font-weight:600; }
.get-btn { display:inline-flex; align-items:center; gap:8px; padding:10px 18px; border-radius:999px; background:var(--accent-soft); color:var(--accent); font-weight:600; font-size:13.5px; white-space:nowrap; }
.get-btn:hover { background:var(--accent); color:var(--accent-ink); }

/* collapsible category sidebar + sort select */
.cs-block[data-collapse] .cs-list .cs-item:nth-child(n+8) { display:none; }
.cs-block[data-collapse].expanded .cs-list .cs-item { display:flex; }
.cs-more { width:100%; margin-top:4px; padding:9px; border:0; background:none; color:var(--accent); font-weight:600; font-size:13px; cursor:pointer; border-radius:8px; }
.cs-more:hover { background:var(--accent-soft); }
.sort-select { display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:999px; background:var(--surface); border:1px solid var(--border-soft); font-size:13.5px; font-weight:600; color:var(--text-mid); }
.sort-select .icon { width:15px; height:15px; }
.sort-select select { background:none; border:0; color:var(--text); font-family:inherit; font-weight:600; font-size:13.5px; outline:none; cursor:pointer; }
@media (max-width:960px){
  .cs-block[data-collapse] .cs-list .cs-item:nth-child(n+8) { display:flex; }
  .cs-more { display:none; }
}
@media (max-width:960px){ .browse-grid { grid-template-columns:1fr; } .cat-side { position:static; } .cs-list { flex-direction:row; flex-wrap:nowrap; overflow-x:auto; } .cs-item { flex:0 0 auto; } .cs-item .n { display:none; } }
@media (max-width:700px){ .row-item { grid-template-columns:auto 1fr; } .ri-cols, .row-item .get-btn { grid-column:2; align-items:flex-start; } }

/* hamburger + offcanvas mobile menu */
.hamburger { display:none; width:42px; height:42px; align-items:center; justify-content:center; border-radius:10px; background:var(--bg-2); border:1px solid var(--border-soft); color:var(--text); cursor:pointer; flex-shrink:0; }
.hamburger svg { width:20px; height:20px; }
.offcanvas { position:fixed; inset:0 auto 0 0; width:300px; max-width:86vw; background:var(--bg-2); border-right:1px solid var(--border-soft); z-index:200; transform:translateX(-100%); transition:transform .25s ease; overflow-y:auto; padding:18px; display:flex; flex-direction:column; gap:4px; }
.offcanvas.open { transform:none; }
.offcanvas-overlay { position:fixed; inset:0; background:oklch(0 0 0 / .55); z-index:199; opacity:0; visibility:hidden; transition:opacity .25s; }
.offcanvas-overlay.open { opacity:1; visibility:visible; }
.offcanvas .oc-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.offcanvas .oc-close { width:38px; height:38px; border-radius:9px; background:var(--surface); border:1px solid var(--border-soft); color:var(--text); display:grid; place-items:center; cursor:pointer; }
.offcanvas a { padding:11px 12px; border-radius:9px; color:var(--text-mid); font-weight:600; font-size:14.5px; }
.offcanvas a:hover { background:var(--surface); color:var(--accent); }
.offcanvas .oc-sec { font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--text-faint); padding:14px 12px 6px; }
@media (max-width:860px){ .hamburger { display:inline-flex; } }

/* ============================================================
   Login / register page (markup + auth JS preserved, restyled)
   ============================================================ */
body.dw-login-page { min-height:100vh; }
.login-page-wrapper { max-width:1040px; margin:0 auto; padding:48px 24px; min-height:100vh; display:flex; align-items:center; }
.login-page-wrapper .path-to-login-bg, .login-page-wrapper .bg-svgs { display:none; }
.login-page-content-wrap { display:grid; grid-template-columns:1fr 1fr; gap:24px; width:100%; align-items:start; }
.login-form-wrap { position:relative; }
.login-form-inner, .register-form-inner { background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-xl); padding:32px; box-shadow:var(--shadow-md); }
.register-form-inner.behind, .login-form-inner.behind { display:none; }
.login-form-inner h3, .register-form-inner h3 { font-family:'Space Grotesk',sans-serif; font-size:22px; display:flex; align-items:center; gap:10px; margin:0 0 20px; }
.login-form-inner h3 .icn, .register-form-inner h3 .icn { width:40px; height:40px; border-radius:12px; background:var(--accent-soft); color:var(--accent); display:grid; place-items:center; }
.login-form-inner h3 .icn .icon, .register-form-inner h3 .icn .icon { width:19px; height:19px; }
.login-form-wrap input[type=text], .login-form-wrap input[type=email] { width:100%; background:var(--bg-2); border:1px solid var(--border); border-radius:12px; color:var(--text); font-size:15px; padding:13px 15px; outline:none; margin-bottom:12px; }
.login-form-wrap input:focus { border-color:var(--accent); }
.verification-code .grid { display:flex; gap:8px; justify-content:space-between; margin:8px 0; }
.verification-code .grid input { width:100%; aspect-ratio:1; text-align:center; font-size:20px; font-family:'Space Grotesk',sans-serif; background:var(--bg-2); border:1px solid var(--border); border-radius:10px; color:var(--text); margin:0; padding:0; }
.verification-code label { font-size:12.5px; color:var(--text-dim); }
.buttons-wrap { display:flex; gap:10px; margin-top:10px; flex-wrap:wrap; }
.buttons-wrap .green-btn, .buttons-wrap .alt-btn { flex:1; justify-content:center; padding:13px 18px; border-radius:999px; font-weight:600; font-size:14px; border:1px solid transparent; cursor:pointer; display:inline-flex; align-items:center; gap:8px; }
.buttons-wrap .green-btn { background:linear-gradient(140deg,var(--accent),var(--accent-2)); color:var(--accent-ink); }
.buttons-wrap .alt-btn { background:var(--surface-2); border-color:var(--border); color:var(--text); }
.buttons-wrap .alt-btn .icon { width:15px; height:15px; }
.not-have-an-account { margin-top:16px; font-size:13.5px; color:var(--text-dim); text-align:center; }
.not-have-an-account .green-btn { background:none; color:var(--accent); padding:0; font-weight:600; box-shadow:none; }
.back-to-farsroid { text-align:center; margin-top:16px; }
.back-to-farsroid a { color:var(--text-dim); font-size:13px; display:inline-flex; align-items:center; gap:6px; }
.back-to-farsroid a:hover { color:var(--accent); }
.account-helper-texts { background:var(--bg-2); border:1px solid var(--border-soft); border-radius:var(--r-xl); padding:32px; }
.account-helper-texts h3 { font-family:'Space Grotesk',sans-serif; font-size:18px; margin:0 0 18px; }
.account-helper-texts ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:16px; }
.account-helper-texts li { display:flex; gap:13px; align-items:flex-start; color:var(--text-mid); font-size:14px; line-height:1.5; }
.account-helper-texts .icn { width:40px; height:40px; flex-shrink:0; border-radius:12px; background:var(--accent-soft); color:var(--accent); display:grid; place-items:center; }
.account-helper-texts .icn .icon { width:19px; height:19px; }
@media (max-width:780px){ .login-page-content-wrap { grid-template-columns:1fr; } .account-helper-texts { display:none; } }

/* ============================================================
   User panel / account (markup preserved, restyled)
   ============================================================ */
.main-panel.user-panel-page-content { display:grid; grid-template-columns:260px minmax(0,1fr); gap:30px; padding-top:24px; padding-bottom:24px; align-items:start; }
.panel-navigation-sidebar { position:sticky; top:84px; background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-lg); padding:18px; }
.user-display-name { display:flex; align-items:center; gap:11px; font-weight:600; font-size:15px; padding-bottom:14px; border-bottom:1px solid var(--border-soft); margin:0 0 8px; }
.user-display-name .icn { width:44px; height:44px; border-radius:50%; background:linear-gradient(150deg,var(--accent),var(--accent-2)); color:var(--accent-ink); display:grid; place-items:center; flex-shrink:0; }
.user-display-name .icn .icon { width:20px; height:20px; }
.mobile-info { font-size:12.5px; color:var(--text-dim); padding-bottom:12px; border-bottom:1px solid var(--border-soft); margin-bottom:10px; }
.mobile-info .phone-model { font-weight:600; color:var(--text-mid); }
.panel-navigation-sidebar ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:2px; }
.panel-navigation-sidebar li a { display:flex; align-items:center; gap:11px; padding:11px 12px; border-radius:10px; color:var(--text-mid); font-weight:600; font-size:14px; }
.panel-navigation-sidebar li a:hover, .panel-navigation-sidebar li.active a, .panel-navigation-sidebar li.current-menu-item a { background:var(--accent-soft); color:var(--accent); }
.panel-navigation-sidebar li a .icon { width:17px; height:17px; }
.main-panel .dashboard, .main-panel .panel-table, .main-panel .update, .main-panel .text-dashboard, .main-panel .user-panel-page-content > section, .main-panel section.dashboard { background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-xl); padding:24px 26px; margin-bottom:22px; }
.main-panel h4.title, .main-panel .title { font-family:'Space Grotesk',sans-serif; font-size:18px; margin:0 0 16px; }
.main-panel .field-item { margin-bottom:14px; }
.main-panel input[type=text], .main-panel input[type=email], .main-panel input[type=password], .main-panel select, .main-panel textarea { width:100%; background:var(--bg-2); border:1px solid var(--border); border-radius:10px; color:var(--text); font-size:14px; padding:11px 13px; outline:none; }
.main-panel input:focus, .main-panel select:focus, .main-panel textarea:focus { border-color:var(--accent); }
.main-panel .row { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.main-panel [class*="col-sm"] { min-width:0; }
.main-panel table { width:100%; border-collapse:collapse; }
.main-panel th, .main-panel td { padding:11px 10px; font-size:13.5px; text-align:left; border-bottom:1px solid var(--border-soft); }
.main-panel th { color:var(--text-dim); font-weight:600; }
.main-panel .green { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 22px; border-radius:999px; background:linear-gradient(140deg,var(--accent),var(--accent-2)); color:var(--accent-ink); font-weight:600; border:0; cursor:pointer; }
@media (max-width:920px){ .main-panel.user-panel-page-content { grid-template-columns:1fr; } .panel-navigation-sidebar { position:static; } .main-panel .row { grid-template-columns:1fr; } }

/* ============================================================
   Popups, toast, share, QR, reviews (markup preserved)
   ============================================================ */
#dwtoast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); z-index:300; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); box-shadow:var(--shadow-lg); padding:13px 18px; max-width:90vw; display:none; align-items:center; gap:14px; color:var(--text); font-size:14px; }
#dwtoast.show, #dwtoast.active, #dwtoast.visible, #dwtoast.dwtoast-show { display:flex; }
#dwtoast .dwtoast--close, #dwtoast .close { cursor:pointer; color:var(--text-dim); display:inline-flex; align-items:center; gap:6px; }
#dwtoast .icon { width:16px; height:16px; }

/* share dropdown (hover-safe fallback) */
.post-dl-bookmark-links { position:relative; }
.share-wrap { display:none; position:absolute; right:0; bottom:calc(100% + 8px); z-index:20; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); box-shadow:var(--shadow-md); padding:8px; flex-direction:column; gap:2px; min-width:170px; }
.share-wrap.open, .share-wrap.active, .share-btn:focus ~ .share-wrap, .post-dl-bookmark-links:focus-within .share-wrap { display:flex; }
.share-wrap a { padding:9px 12px; border-radius:8px; color:var(--text-mid); font-size:13.5px; }
.share-wrap a:hover { background:var(--bg-2); color:var(--accent); }

/* QR popup stays hidden until opened by the theme JS */
.download-link { position:relative; }
.qr-code-wrapper { display:none; position:absolute; z-index:20; right:0; top:calc(100% + 8px); background:#fff; border-radius:var(--r-md); padding:12px; box-shadow:var(--shadow-md); }
.qr-code-wrapper.open, .qr-code-wrapper.active { display:block; }
.download-link .qr { display:none; }

/* generic in-place modal content card (when the theme reveals a [id]_modal block) */
.user-panel-page-content.row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
#change_phone_number_modal, .dw-modal, .modal-content { background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-xl); padding:24px 26px; }
.mfp-content .dashboard, .mfp-content section, .mfp-content .login-form-inner { background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-xl); padding:24px 26px; }

/* reviews / rating form */
.user-reviews-wrapper .stars-rate, .user-reviews-wrapper .rateit, .review-stars { display:inline-flex; gap:4px; color:var(--amber); }
.user-reviews-wrapper .icon { width:18px; height:18px; }
.user-reviews-wrapper .average-rating { font-family:'Space Grotesk',sans-serif; font-size:30px; font-weight:700; color:var(--accent); }
.user-reviews-wrapper textarea { min-height:90px; }
@media (max-width:560px){ .user-panel-page-content.row { grid-template-columns:1fr; } }

/* ============================================================
   Panel dashboard ("Counter") + changelog + gallery + rating stars
   ============================================================ */
.top-panel > .title { font-family:'Space Grotesk',sans-serif; font-size:20px; margin:0 0 8px; }
.top-panel > p { color:var(--text-dim); font-size:14px; margin:0 0 18px; max-width:72ch; }
.top-panel-header { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:18px; }
.box-panel { display:flex; align-items:center; justify-content:space-between; gap:12px; background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-lg); padding:18px; }
.box-panel .right-box { display:flex; flex-direction:column; font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:24px; color:var(--accent); }
.box-panel .right-box span { font-family:'Plus Jakarta Sans',sans-serif; font-weight:500; font-size:12.5px; color:var(--text-faint); }
.box-panel .icon { width:28px; height:28px; color:var(--text-faint); flex-shrink:0; }
.top-panel-body { display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:start; }
.top-panel-body-right { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.application-request { grid-column:1 / -1; background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-lg); padding:18px; }
.application-request .right-box { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:20px; color:var(--accent); display:flex; flex-direction:column; margin-bottom:12px; }
.application-request .right-box span { font-size:12.5px; color:var(--text-faint); font-family:'Plus Jakarta Sans',sans-serif; font-weight:500; }
.application-request form { display:flex; gap:10px; flex-wrap:wrap; }
.application-request input { flex:1; min-width:180px; }
.application-request button { padding:11px 22px; border-radius:999px; background:linear-gradient(140deg,var(--accent),var(--accent-2)); color:var(--accent-ink); font-weight:600; border:0; cursor:pointer; }
#app_request_confirm_modal { display:none; }
.recent-activities { background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-lg); padding:18px; }
.title-recent-activities { font-family:'Space Grotesk',sans-serif; font-size:16px; margin:0 0 12px; }
.recent-activities ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.recent-activities-item { position:relative; background:var(--bg-2); border:1px solid var(--border-soft); border-radius:var(--r-md); padding:12px 14px; }
.recent-activities-item-top { display:flex; align-items:center; gap:8px; margin-bottom:4px; }
.recent-activities-item-top span { font-size:11px; font-weight:700; color:var(--accent); text-transform:uppercase; }
.item-top-title { font-size:13px; color:var(--text-mid); }
.recent-activities-item-body p { font-size:13px; color:var(--text-dim); margin:0; }
@media (max-width:760px){ .top-panel-header { grid-template-columns:1fr 1fr; } .top-panel-body { grid-template-columns:1fr; } }

/* changelog */
.app-changelog { background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-xl); padding:22px 26px; margin-top:22px; }
.app-changelog > ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:16px; }
.app-changelog .version-name { font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:15px; display:block; margin-bottom:8px; color:var(--text); }
.app-changelog ul ul { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:7px; }
.app-changelog ul ul li { position:relative; padding-left:18px; color:var(--text-mid); font-size:14px; line-height:1.6; }
.app-changelog ul ul li::before { content:""; position:absolute; left:2px; top:9px; width:6px; height:6px; border-radius:50%; background:var(--accent); }

/* gallery */
.screenshots-gallery { background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-xl); padding:22px 26px; margin-top:22px; }
.screenshots-head { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:14px; }
.screenshots-head h3 { font-family:'Space Grotesk',sans-serif; font-size:18px; }
.screenshots-head .count { font-size:12.5px; color:var(--text-faint); }
.screenshots-slider .swiper-wrapper { display:flex; gap:14px; overflow-x:auto; padding-bottom:8px; scrollbar-width:thin; }
.screenshots-slider .swiper-slide { flex:0 0 auto; width:300px; max-width:78vw; }
.screenshots-slider .swiper-slide a { position:relative; display:block; border-radius:var(--r-md); overflow:hidden; border:1px solid var(--border-soft); }
.screenshots-slider .swiper-slide img { width:100%; height:auto; display:block; aspect-ratio:16/9; object-fit:cover; }
.screenshots-slider .play, .screenshots-slider .expand { position:absolute; display:grid; place-items:center; background:oklch(0 0 0 / .5); color:#fff; }
.screenshots-slider .play { inset:0; margin:auto; width:50px; height:50px; border-radius:50%; }
.screenshots-slider .play .icon { width:20px; height:20px; }
.screenshots-slider .expand { right:8px; bottom:8px; width:30px; height:30px; border-radius:8px; }
.screenshots-slider .expand .icon { width:15px; height:15px; }
.screenshots-slider .swiper-scrollbar { display:none; }

/* rating stars bigger than 1em */
.dc-single .icon-star-empty, .dc-single .icon-star-filled, .user-reviews-wrapper .icon-star-empty, .user-reviews-wrapper .icon-star-filled { width:18px; height:18px; color:var(--amber); }

/* ============================================================
   Reviews + comments (mockup styling, markup preserved)
   ============================================================ */
.detail-grid { grid-template-columns:minmax(0,1fr) 320px; }
.post-reviews, .comment-send-container, .comments-list-container { background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-xl); padding:24px 26px; margin-top:22px; }
.post-reviews > h3, .comment-send-container .box-ttl, .comments-list-top h3 { font-family:'Space Grotesk',sans-serif; font-size:18px; margin:0 0 14px; }
.make-a-review-box { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; background:var(--bg-2); border:1px solid var(--border-soft); border-radius:var(--r-md); padding:14px 16px; margin-bottom:16px; }
.make-a-review-box .txt { font-size:13.5px; color:var(--text-dim); }
.make-a-review-box .txt a { color:var(--accent); font-weight:600; }
.review-rating-container { display:flex; flex-direction:column; gap:14px; }
.overall-rating { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.star-ratings { display:flex; align-items:center; gap:10px; }
.star-ratings .stars { position:relative; display:inline-flex; }
.star-ratings .stars .empty, .star-ratings .stars .avg { display:flex; gap:2px; }
.star-ratings .stars .avg { position:absolute; top:0; left:0; overflow:hidden; white-space:nowrap; }
.overall-rating .average-rate, .post-reviews .average-rate { font-family:'Space Grotesk',sans-serif; font-size:30px; font-weight:700; color:var(--accent); }
.star-ratings .text { font-size:13px; color:var(--text-dim); }
.rates { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; max-width:320px; }
.rates li { display:flex; align-items:center; gap:10px; }
.rates .rate { font-size:12px; color:var(--text-dim); width:12px; }
.rates .bars { flex:1; height:7px; border-radius:999px; background:var(--bg-2); overflow:hidden; }
.rates .percent { display:block; height:100%; background:var(--accent); border-radius:999px; }
.reviews-list { list-style:none; padding:0; margin:16px 0 0; display:flex; flex-direction:column; gap:12px; }
.reviews-list .review-body { background:var(--bg-2); border:1px solid var(--border-soft); border-radius:var(--r-md); padding:14px 16px; }
.reviews-list .author { font-weight:600; }
.reviews-list .date { font-size:12px; color:var(--text-faint); margin-left:8px; }
.reviews-list .review-text { color:var(--text-mid); font-size:14px; margin-top:6px; line-height:1.6; }
.load-more-reviews { margin-top:14px; }
/* review send modal */
#send_review_content { display:none; }
.review-send-card { background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-xl); padding:24px 26px; }
.review-send--header { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.rating-field { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.custom-input-number { display:inline-flex; align-items:center; gap:8px; }
.custom-input-number input { width:60px; text-align:center; }
.custom-input-number em { cursor:pointer; color:var(--text-dim); display:inline-flex; }
.custom-input-number em svg { width:14px; height:14px; }
/* comment form */
.comment-send-form form { display:flex; flex-direction:column; gap:12px; }
.comment-send-form textarea { width:100%; min-height:90px; background:var(--bg-2); border:1px solid var(--border); border-radius:12px; color:var(--text); font-family:inherit; font-size:14px; padding:12px 14px; }
.comment-send-form .fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.comment-send-form .fields input, .comment-send-form .fields select { width:100%; }
.comment-send-form .checkbox-wrap { grid-column:1 / -1; font-size:13px; color:var(--text-dim); }
.comment-send-form .custom-checkbox { display:inline-flex; align-items:center; gap:8px; cursor:pointer; }
.comment-send-form .custom-checkbox .box { width:18px; height:18px; border:1px solid var(--border); border-radius:5px; display:grid; place-items:center; }
.comment-send-form .custom-checkbox .icon { width:12px; height:12px; color:var(--accent); }
.comment-send-form .custom-checkbox .label a { color:var(--accent); }

/* checkbox visual fix (hide native box, toggle the check) — fixes "Terms" line */
.custom-checkbox { position:relative; display:inline-flex; align-items:center; gap:8px; cursor:pointer; }
.custom-checkbox > input[type=checkbox] { position:absolute; opacity:0; width:0; height:0; margin:0; }
.custom-checkbox .box { width:18px; height:18px; border:1px solid var(--border); border-radius:5px; display:grid; place-items:center; flex-shrink:0; background:var(--bg-2); }
.custom-checkbox .box .icon { width:12px; height:12px; color:var(--accent-ink); opacity:0; }
.custom-checkbox input[type=checkbox]:checked + .box { background:var(--accent); border-color:var(--accent); }
.custom-checkbox input[type=checkbox]:checked + .box .icon { opacity:1; }
.custom-checkbox .label { font-size:13px; color:var(--text-dim); }

/* related posts → horizontal card-row like the mockup */
.related-posts .posts-list-wrapper { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(152px,1fr); grid-template-columns:none; gap:16px; overflow-x:auto; padding-bottom:10px; scroll-snap-type:x proximity; scrollbar-width:thin; }
.related-posts .post-item-wrapper { scroll-snap-align:start; min-width:0; }
@media (max-width:600px){ .related-posts .posts-list-wrapper { grid-auto-columns:minmax(140px,44vw); } }

/* Save button uses the accent so the action row matches the mockup */
.post-dl-bookmark-links .bookmark-btn { background:var(--accent-soft); border-color:transparent; color:var(--accent); }
.post-dl-bookmark-links .bookmark-btn.bookmarked { background:var(--accent); color:var(--accent-ink); }
.post-dl-bookmark-links .like-btn.voted { border-color:var(--accent); color:var(--accent); }

/* ============================================================
   Download countdown page
   ============================================================ */
.dl-wrap { max-width:620px; margin:0 auto; padding:56px 0 20px; text-align:center; }
.dl-file-icon { width:92px; height:92px; margin:0 auto 26px; border-radius:26px; display:grid; place-items:center; background:linear-gradient(150deg,var(--accent),var(--accent-2)); color:var(--accent-ink); box-shadow:0 14px 40px var(--accent-glow); }
.dl-file-icon svg { width:40px; height:40px; }
.dl-wrap h1 { font-family:'Space Grotesk',sans-serif; font-size:26px; margin-bottom:8px; }
.dl-wrap .fname { color:var(--accent); word-break:break-all; }
.dl-wrap .sub { color:var(--text-dim); font-size:15px; }
.countdown { margin:34px auto 8px; width:132px; height:132px; position:relative; }
.countdown svg { transform:rotate(-90deg); }
.countdown .num { position:absolute; inset:0; display:grid; place-items:center; font-family:'Space Grotesk',sans-serif; font-size:44px; font-weight:700; }
.countdown .num small { font-size:13px; color:var(--text-faint); font-weight:500; display:block; margin-top:-4px; }
.dl-progress { max-width:420px; margin:20px auto 0; }
.dl-progress-track { height:8px; border-radius:999px; background:var(--surface); overflow:hidden; }
.dl-progress-fill { height:100%; width:0; background:linear-gradient(90deg,var(--accent),var(--accent-2)); border-radius:999px; transition:width .9s linear; }
.dl-progress-labels { display:flex; justify-content:space-between; font-size:12.5px; color:var(--text-faint); margin-top:8px; }
.dl-manual { margin-top:26px; font-size:14px; color:var(--text-dim); }
.dl-manual a { color:var(--accent); font-weight:600; }
.dl-safety { display:inline-flex; align-items:center; gap:8px; margin-top:22px; font-size:12.5px; color:var(--text-faint); padding:7px 14px; border-radius:999px; border:1px solid var(--border-soft); }
.dl-safety svg { color:var(--accent); width:14px; height:14px; }

/* ============================================================
   Dark scrollbars + share row + post-foot (Google Play / reports)
   ============================================================ */
html { scrollbar-color: var(--border) transparent; scrollbar-width: thin; }
.dc-skin *::-webkit-scrollbar, body::-webkit-scrollbar { width:10px; height:10px; }
.dc-skin *::-webkit-scrollbar-track { background:transparent; }
.dc-skin *::-webkit-scrollbar-thumb { background:var(--border); border-radius:999px; }
.dc-skin *::-webkit-scrollbar-thumb:hover { background:var(--surface-hi); }

/* share row (Save · Share: links · Like) — matches mockup */
.share-row { display:flex; align-items:center; gap:8px; margin-top:16px; flex-wrap:wrap; }
.share-row .lbl { font-size:13px; color:var(--text-dim); margin-left:4px; }

/* Save moved to the app-hero top-right corner */
.app-hero { position:relative; }
.app-hero-save { position:absolute; top:14px; right:14px; width:40px; height:40px; border-radius:10px; display:grid; place-items:center; background:var(--bg-2); border:1px solid var(--border-soft); color:var(--text-mid); z-index:2; }
.app-hero-save:hover { border-color:var(--accent); color:var(--accent); }
.app-hero-save.bookmarked { background:var(--accent); color:var(--accent-ink); border-color:var(--accent); }
.app-hero-save .icon { width:18px; height:18px; }
.share-row .share-btn { display:inline-flex; align-items:center; gap:7px; padding:9px 15px; border-radius:999px; background:var(--surface); border:1px solid var(--border-soft); font-size:13.5px; font-weight:600; color:var(--text-mid); cursor:pointer; }
.share-row .share-btn:hover { border-color:var(--accent); color:var(--accent); }
.share-row .share-btn .icon { width:15px; height:15px; }
.share-row .share-btn.bookmark-btn { background:var(--accent-soft); color:var(--accent); border-color:transparent; }
.share-row .share-btn.bookmark-btn.bookmarked { background:var(--accent); color:var(--accent-ink); }
.share-row .share-btn.like-btn.voted { border-color:var(--accent); color:var(--accent); }
@media (max-width:560px){ .share-row .like-btn { margin-left:0 !important; } }

/* post-foot: Google Play / Request a game / Report Copyright / Report select */
.post-foot-stuff { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:22px; }
.shadowed-btn { display:inline-flex; align-items:center; gap:8px; padding:11px 16px; border-radius:999px; background:var(--surface); border:1px solid var(--border-soft); color:var(--text); font-weight:600; font-size:13.5px; cursor:pointer; }
.shadowed-btn:hover { border-color:var(--accent); color:var(--accent); }
.shadowed-btn .icon { width:16px; height:16px; }
.reports select, #post_report_select { background:var(--surface); border:1px solid var(--border-soft); border-radius:999px; color:var(--text-mid); font-weight:600; font-size:13.5px; padding:11px 16px; cursor:pointer; }

/* report / installation modals (revealed by theme JS) */
#report_modal_notification_update, #report_modal_notification_info, #report_modal_notification_broken_link, #report_modal_notification_copyright, #report_success_message, #installation_guide { display:none; }
.modal--header { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.modal--header h3 { font-family:'Space Grotesk',sans-serif; font-size:18px; }
.modal--close { cursor:pointer; color:var(--text-dim); display:inline-flex; align-items:center; gap:6px; }
.modal--close .icon { width:14px; height:14px; }
.report-form { display:flex; flex-direction:column; gap:10px; margin-top:8px; }
.report-form .buttons { display:flex; gap:10px; align-items:center; }
.report-form button[type=submit] { background:linear-gradient(140deg,var(--accent),var(--accent-2)); color:var(--accent-ink); border:0; padding:11px 22px; border-radius:999px; font-weight:600; cursor:pointer; }
.report-form button[type=submit]:disabled { opacity:.55; cursor:not-allowed; }
.report-form .cancel-btn, .btn-alternate-gray { background:var(--surface-2); border:1px solid var(--border); color:var(--text); padding:11px 22px; border-radius:999px; font-weight:600; cursor:pointer; }
.report-success-message-modal svg { width:64px; height:64px; fill:var(--accent); }

/* ============================================================
   Tingle.js modal shell (all popups: report, review, change phone…)
   ============================================================ */
.tingle-modal { position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; padding:20px; background:oklch(0 0 0 / .6); overflow-y:auto; opacity:0; visibility:hidden; transition:opacity .2s; }
.tingle-modal.tingle-modal--visible { opacity:1; visibility:visible; }
.tingle-modal-box { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-xl); max-width:540px; width:100%; box-shadow:var(--shadow-lg); margin:auto; }
.tingle-modal-box__content { padding:26px 28px; }
.tingle-modal-box__content > * { max-width:100%; }
.tingle-modal__close { position:fixed; top:18px; right:18px; background:var(--surface-2); border:1px solid var(--border); color:var(--text); width:42px; height:42px; border-radius:10px; cursor:pointer; display:flex; align-items:center; justify-content:center; z-index:1002; }
.tingle-modal__close:hover { border-color:var(--accent); color:var(--accent); }
.tingle-modal__closeIcon { font-size:22px; line-height:1; }
.tingle-modal__closeLabel { display:none; }
.tingle-modal--noOverlayClose { }
.tingle-enabled { overflow:hidden; }
/* modal inner pieces inside tingle */
.tingle-modal .modal--header { margin-bottom:14px; }
.tingle-modal .review-send-card, .tingle-modal .send-review-modal-inner, .tingle-modal .review-white-card { background:transparent; border:0; padding:0; }
.tingle-modal .review-send--header h3 { font-family:'Space Grotesk',sans-serif; font-size:18px; }
.tingle-modal .farsroid-logo .icon { width:90px; height:24px; color:var(--accent); }
.tingle-modal .form-fields .inputs { display:grid; gap:12px; margin-top:12px; }
.tingle-modal .form-fields input, .tingle-modal .form-fields textarea, .tingle-modal .report-form input, .tingle-modal .report-form textarea { width:100%; background:var(--bg-2); border:1px solid var(--border); border-radius:10px; color:var(--text); padding:11px 13px; font-size:14px; outline:none; }
.tingle-modal .rating-field { display:flex; align-items:center; justify-content:space-between; gap:12px; background:var(--bg-2); border:1px solid var(--border); border-radius:10px; padding:6px 12px; }
.tingle-modal .ta-wrap textarea { min-height:120px; margin-top:12px; }
.tingle-modal .comment-rules-modal { max-height:300px; overflow:auto; color:var(--text-mid); font-size:14px; line-height:1.7; }
@media (max-width:560px){ .tingle-modal__close { top:10px; right:10px; } }
.comment-send-form button[type=submit] { grid-column:1 / -1; justify-self:start; padding:12px 24px; border-radius:999px; background:linear-gradient(140deg,var(--accent),var(--accent-2)); color:var(--accent-ink); font-weight:600; border:0; cursor:pointer; }
.comments-list-top { display:flex; align-items:center; gap:10px; }
.comments-list { list-style:none; padding:0; margin:14px 0 0; display:flex; flex-direction:column; gap:14px; }
.comments-list .comment { background:var(--bg-2); border:1px solid var(--border-soft); border-radius:var(--r-md); padding:14px 16px; }
#comment_rules { display:none; }
@media (max-width:560px){ .comment-send-form .fields { grid-template-columns:1fr; } }

/* ============================================================
   Download box / Details (2 cards) + Related posts + responsive
   ============================================================ */
.downloadbox .downloadbox-body { display:block; }
.post-details { background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-xl); padding:22px 26px; margin-top:22px; }
.post-details .downloadbox-top { margin-bottom:6px; }
.post-details .downloadbox-top h3 { font-family:'Space Grotesk',sans-serif; font-size:18px; }

/* related posts → card row */
.related-posts { background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-xl); padding:22px 26px; margin-top:22px; }
.related-posts > h3 { font-family:'Space Grotesk',sans-serif; font-size:18px; margin:0 0 14px; }
.related-posts .posts-list-wrap-scroller { overflow:visible; }
.related-posts .posts-list-wrapper { display:grid; grid-template-columns:repeat(auto-fill,minmax(148px,1fr)); gap:14px; }
.related-posts .post-item-wrapper { min-width:0; }

/* ---- tablet / mobile polish ---- */
@media (max-width:1040px){
  .detail-grid { grid-template-columns:1fr; }
  .detail-aside { position:static; }
  .detail-aside .aside-block { max-width:none; }
}
@media (max-width:768px){
  .container { padding:0 18px; }
  .app-hero { gap:16px; padding:18px; }
  .app-hero figure.app-icon { width:74px; height:74px; }
  .app-hero h1 { font-size:21px; }
  .post-content, .dc-single .block, .post-details, .downloadbox, .related-posts, .post-reviews, .comment-send-container, .comments-list-container { padding:18px 18px; }
  .browse-grid { gap:20px; }
}
@media (max-width:600px){
  .meta-list { grid-template-columns:1fr 1fr; }
  .download-link { flex-wrap:wrap; gap:8px; }
  .download-btn { flex:1 0 100%; }
  .post-metas-tabeld th, .post-metas-tabeld td { font-size:13px; padding:10px 4px; }
  .post-metas-tabeld .icn { margin-right:6px; }
  .related-posts .posts-list-wrapper { grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); }
  .card-row { grid-auto-columns:minmax(140px,42vw); }
  .page-head h1 { font-size:24px; }
  .hero-feature h1 { font-size:24px; }
}

/* dc-dlbox-mockup === download box (mockup match) === */
.dlbox-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.dlbox-head h3{margin:0;display:flex;align-items:center;gap:10px}
.dlbox-head .center{font-size:12.5px;color:var(--text-faint)}
.dl-list{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.dl-item{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:var(--r-md);background:var(--bg-2);border:1px solid var(--border-soft);transition:all .15s;text-decoration:none}
.dl-item:hover{border-color:var(--accent);background:var(--surface-2);transform:translateY(-1px)}
.dl-item .dl-ic{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);flex-shrink:0}
.dl-item.featured{background:linear-gradient(135deg,var(--accent-soft),transparent);border-color:var(--accent)}
.dl-item.featured .dl-ic{background:var(--accent);color:var(--accent-ink)}
.dl-body{flex:1;min-width:0}
.dl-name{font-weight:600;font-size:14px;display:flex;align-items:center;gap:8px}
.dl-sub{font-size:12px;color:var(--text-dim)}
.dl-size{font-size:12.5px;font-weight:700;color:var(--text-mid);font-variant-numeric:tabular-nums;white-space:nowrap}
.badge-pre{font-size:10px;font-weight:700;padding:2px 7px;border-radius:5px;background:oklch(0.74 0.13 250 / 0.18);color:var(--blue)}

/* dc-reviews-mockup === reviews (mockup match) === */
.review-head{display:flex;gap:30px;align-items:center;flex-wrap:wrap}
.score-big{text-align:center}
.score-big .n{font-size:48px;font-weight:700;line-height:1}
.score-big .stars{color:var(--text-faint);font-size:15px;letter-spacing:2px;margin-top:4px}
.score-big .cnt{color:var(--text-faint);font-size:12px;margin-top:2px}
.rvbars{flex:1;min-width:200px;display:flex;flex-direction:column;gap:6px}
.rvbar-row{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--text-dim)}
.rvbar-track{flex:1;height:7px;border-radius:999px;background:var(--bg-2);overflow:hidden}
.rvbar-fill{height:100%;background:var(--accent);border-radius:999px}
.rv-empty{color:var(--text-dim);margin:16px 0 0;font-size:13.5px}
.rv-write{margin-top:14px;display:inline-block}

/* dc-mockup-v3 === single sections (apkopia 3) === */
.single .block,.block{background:var(--surface);border:1px solid var(--border-soft);border-radius:var(--r-xl);padding:22px 24px;margin-top:20px}
.block > h2{font-size:18px;margin:0 0 14px;display:flex;align-items:center;gap:10px}
.feature-list{list-style:none;padding:0;margin:4px 0 0;display:grid;gap:10px}
.feature-list li{display:flex;gap:11px;align-items:flex-start;color:var(--text-mid);font-size:14px;line-height:1.6}
.feature-list svg{flex-shrink:0;color:var(--accent);margin-top:3px}
.faq-group{list-style:none;padding:0;margin:8px 0 0;display:flex;flex-direction:column;gap:10px}
.faq-item{border:1px solid var(--border-soft);border-radius:var(--r-md);background:var(--bg-2);overflow:hidden}
.faq-q{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;background:none;border:0;color:var(--text);font-family:inherit;font-weight:600;font-size:14.5px;padding:14px 16px;cursor:pointer}
.faq-q .chev{width:18px;height:18px;color:var(--text-faint);transition:transform .2s;flex-shrink:0}
.faq-item.open .faq-q .chev{transform:rotate(180deg);color:var(--accent)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .25s ease}
.faq-a-inner{padding:0 16px 14px;color:var(--text-mid);font-size:14px;line-height:1.7}
.faq-a-inner p{margin:0 0 8px}.faq-a-inner p:last-child{margin:0}
.faq-item.open .faq-a{max-height:800px}
.mode-desc{color:var(--text-mid);font-size:14px;margin:0 0 14px}
.mode-features{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:6px}
.mode-feature{background:var(--bg-2);border:1px solid var(--border-soft);border-radius:var(--r-md);padding:16px 18px}
.mode-feature h5{font-size:14px;margin:0 0 9px;display:flex;align-items:center;gap:8px}
.mode-feature h5::before{content:"";width:7px;height:7px;border-radius:2px;background:var(--accent);flex-shrink:0}
.mode-feature ul{margin:0;padding-left:18px;color:var(--text-mid);font-size:13.5px;line-height:1.7}
.install-steps{counter-reset:step;list-style:none;padding:0;margin:6px 0 0;display:flex;flex-direction:column;gap:12px}
.install-steps li{display:flex;gap:14px;align-items:flex-start;color:var(--text-mid);font-size:14.5px;line-height:1.5}
.install-steps li::before{counter-increment:step;content:counter(step);flex-shrink:0;width:28px;height:28px;border-radius:9px;background:var(--accent-soft);color:var(--accent);font-weight:700;font-size:14px;display:grid;place-items:center}
.tip-alert{display:flex;gap:14px;background:linear-gradient(135deg,var(--accent-soft),transparent);border:1px solid var(--accent);border-radius:var(--r-md);padding:16px 18px}
.tip-alert .tip-ic{width:34px;height:34px;border-radius:9px;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;flex-shrink:0}
.tip-alert .tip-ic svg{width:18px;height:18px}
.tip-alert .tip-title{font-weight:700;font-size:14.5px;margin-bottom:4px}
.tip-alert .tip-body p{color:var(--text-mid);font-size:14px;line-height:1.7;margin:0 0 4px}
.tip-alert .tip-body p:last-child{margin:0}
/* comments (apkopia 3) */
.comments-list{list-style:none;padding:0;margin:16px 0 0;display:flex;flex-direction:column;gap:12px}
.comments-list .children{list-style:none;margin:12px 0 0 28px;padding-left:16px;border-left:2px solid var(--border-soft);display:flex;flex-direction:column;gap:12px}
.comment-card{background:var(--bg-2);border:1px solid var(--border-soft);border-radius:var(--r-md);padding:14px 16px}
.comment-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.comment-top .avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(150deg,var(--accent),var(--accent-2));color:var(--accent-ink);display:grid;place-items:center;font-weight:700;font-size:13px;flex-shrink:0;overflow:hidden}
.comment-top .avatar img{width:100%;height:100%;border-radius:50%}
.comment-top .author{font-weight:600;font-size:14px}
.comment-top .badge-admin{font-size:10px;font-weight:700;padding:2px 7px;border-radius:5px;background:var(--accent-soft);color:var(--accent)}
.comment-top .date{font-size:12px;color:var(--text-faint);margin-left:auto}
.comment-text{color:var(--text-mid);font-size:14px;line-height:1.6;margin:9px 0}
.comment-bottom{display:flex;align-items:center;gap:16px}
.comment-bottom .reply a,.comment-bottom .reply{font-size:12.5px;font-weight:600;color:var(--accent)}
.comments-head .cnt-pill{font-size:12.5px;font-weight:700;padding:3px 10px;border-radius:999px;background:var(--accent-soft);color:var(--accent)}

/* dc-fix-1 === comment/review card cleanup === */
.comments-list li.comment,.comments-list > li,.comment-list li,.reviews-list > li,.reviews-list li{background:transparent;border:0;padding:0;border-radius:0;margin:0}
.comment-bottom{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:2px}
.comment-bottom .likes,.review-card .likes{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--text-dim);cursor:pointer}
.comment-bottom .likes svg,.review-card .likes svg{width:15px;height:15px}
.comment-bottom .likes:hover,.review-card .likes:hover{color:var(--accent)}
.review-card .likes{margin-top:10px}
.review-card .date{margin-left:auto}
.rv-stars{color:var(--amber);font-size:13px;letter-spacing:1px}
.reviews-list{list-style:none;padding:0;margin:18px 0 0;display:flex;flex-direction:column;gap:12px}

.faq-desc{color:var(--text-mid);font-size:14px;line-height:1.7;margin:0 0 12px}

/* dc-fix-2 mode-feature gon: bo vien card, giu nen */
.mode-feature{border:0;background:var(--bg-2)}

/* dc-fix-3 mod-features vien trong + intro indent */
.block-flat{background:transparent;border:0}
.mode-feature{border:1px solid var(--border-soft);background:var(--bg-2)}
.mode-desc,.faq-desc{padding-left:19px}
