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

/* ══ DESIGN TOKENS ═══════════════════════════════════════════════════════════ */
:root {
  /* Radius — единый для всего проекта */
  --r: 10px;

  /* Spacing */
  --sp:    24px;
  --sp-s:  14px;
  --sp-l:  44px;

  /* Nav */
  --nav-h: 56px;

  /* Fonts */
  --font-head: 'Syne', sans-serif;
  --font:      'DM Sans', sans-serif;

  /* Transition */
  --t:    .16s;
  --ease: cubic-bezier(.4, 0, .2, 1);

  /* ── LIGHT THEME ── */
  --bg:         #eef1f8;
  --bg2:        #e4e8f2;
  --bg3:        #d8dde9;
  --surface:    #ffffff;
  --surface2:   #f7f8fc;
  --glass:      rgba(255, 255, 255, .72);
  --glass-nav:  rgba(242, 244, 252, .82);

  --text:       #06070f;
  --text2:      #44475a;
  --text3:      #9296ab;

  --accent:     #0066cc;
  --accent2:    #004499;
  --accent-bg:  rgba(0, 102, 204, .1);
  --accent-txt: #ffffff;

  --green:      #17b26a;
  --green-bg:   rgba(23, 178, 106, .1);
  --red:        #e03535;
  --red-bg:     rgba(224, 53, 53, .1);
  --gold:       #e8970a;

  /* Fog layers — светлая тема */
  --fog-a: rgba(0, 102, 204, .06);
  --fog-b: rgba(0, 60, 160, .04);
}

[data-theme="dark"] {
  --bg:         #07080f;
  --bg2:        #0d0e18;
  --bg3:        #141520;
  --surface:    #10111c;
  --surface2:   #181926;
  --glass:      rgba(16, 17, 28, .78);
  --glass-nav:  rgba(8, 9, 18, .85);

  --text:       #eeeef5;
  --text2:      #7e8099;
  --text3:      #3c3e52;

  --accent:     #0066cc;
  --accent2:    #004499;
  --accent-bg:  rgba(0, 102, 204, .14);
  --accent-txt: #ffffff;

  --green:      #16c264;
  --green-bg:   rgba(22, 194, 100, .12);
  --red:        #e03535;
  --red-bg:     rgba(224, 53, 53, .12);
  --gold:       #e8970a;

  /* Fog layers — тёмная тема */
  --fog-a: rgba(0, 80, 200, .07);
  --fog-b: rgba(0, 30, 100, .05);
}

/* ══ RESET ═══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
html, body { max-width: 100%; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }
button, input, textarea, select, a {
  border: 0;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}
button:focus, input:focus, textarea:focus, select:focus, a:focus { outline: 0; }
button::-moz-focus-inner { border: 0; padding: 0; }

/* ══ GLOBAL BACKGROUND — туманность ═════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%,  var(--fog-a) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 90% 80%,  var(--fog-b) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%,  var(--fog-a) 0%, transparent 70%);
  pointer-events: none;
}
[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse 70% 55% at 8%  18%,  rgba(0, 80,  220, .09) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 92% 82%,  rgba(0, 50,  160, .07) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 55% 45%,  rgba(0, 100, 255, .05) 0%, transparent 70%);
}

/* ══ LAYOUT ══════════════════════════════════════════════════════════════════ */
.container  { max-width: 1120px; margin: 0 auto; padding: 0 var(--sp); }
.home-wrap  { max-width: 1120px; margin: 0 auto; padding: 0 var(--sp) var(--sp-l); }
.page-body  { padding-top: var(--sp-l); padding-bottom: var(--sp-l); }
main        { width: 100%; max-width: 100%; min-width: 0; }

/* ══ NAV ═════════════════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--glass-nav);
  backdrop-filter: saturate(160%) blur(24px);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
  border-bottom: 1px solid rgba(0, 102, 204, .08);
  overflow: visible;
}
[data-theme="dark"] .nav {
  border-bottom-color: rgba(0, 102, 204, .1);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--sp);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  background: linear-gradient(145deg, #1a6fff, #0044cc);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-icon-fa { font-size: 18px; color: #fff; }
.nav-logo-text {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.3px;
  line-height: 1;
}
.nav-logo-text em { font-style: normal; color: var(--accent); }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  transition: color var(--t), background var(--t);
}
.nav-link:hover { background: var(--bg2); color: var(--text); }
.nav-link.active { color: var(--accent); background: var(--accent-bg); }
.nav-link i { font-size: 11px; opacity: .8; }
.nav-svg-icon { width: 12px; height: 12px; flex-shrink: 0; }

/* Search */
.nav-search { flex: 1; max-width: 340px; position: relative; }
.nav-search-wrap { position: relative; }
.nav-search-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 12px;
  pointer-events: none;
}
.nav-search-wrap input {
  width: 100%;
  padding: 8px 34px 8px 32px;
  background: var(--bg2);
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: background var(--t);
}
.nav-search-wrap input:focus {
  background: var(--surface);
}
.nav-search-wrap input::placeholder { color: var(--text3); }
.nav-search-clear {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: var(--r);
  background: var(--text3);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
  transition: background var(--t);
}
.nav-search-clear:hover { background: var(--text2); }
.nav-search-clear.visible { display: flex; }

/* Search dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r);
  z-index: 9999;
  max-height: 440px;
  overflow-y: auto;
  display: none;
  border: 1px solid rgba(0, 102, 204, .1);
}
.search-dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  transition: background var(--t);
  color: var(--text);
  border-bottom: 1px solid rgba(0,0,0,.04);
}
[data-theme="dark"] .search-dd-item { border-bottom-color: rgba(255,255,255,.04); }
.search-dd-item:last-child { border: none; }
.search-dd-item:hover { background: var(--bg2); }
.search-dd-img-wrap { position: relative; flex-shrink: 0; }
.search-dd-img { width: 44px; height: 44px; border-radius: var(--r); object-fit: cover; }
.search-dd-ph {
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 16px;
  flex-shrink: 0;
}
.search-dd-mod {
  position: absolute;
  top: -3px;
  left: -3px;
  font-size: 7px;
  font-weight: 800;
  background: var(--green);
  color: #fff;
  padding: 1px 4px;
  border-radius: 4px;
  letter-spacing: .4px;
}
.search-dd-info { flex: 1; min-width: 0; }
.search-dd-name {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 3px;
}
.search-dd-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.search-dd-cat { font-size: 11px; color: var(--text3); background: var(--bg3); padding: 1px 6px; border-radius: 4px; }
.search-dd-stars { display: flex; gap: 1px; font-size: 9px; color: var(--gold); }
.search-dd-rating { font-size: 11px; font-weight: 700; color: var(--text2); }
.search-dd-dl { font-size: 11px; color: var(--text3); display: flex; align-items: center; gap: 2px; }
.search-dd-dl i { font-size: 8px; }
.search-dd-desc { font-size: 11px; color: var(--text3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-dd-empty { padding: 18px; text-align: center; font-size: 13px; color: var(--text3); display: flex; align-items: center; justify-content: center; gap: 7px; }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.nav-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background var(--t), color var(--t);
}
.nav-icon-btn:hover { background: var(--bg2); color: var(--text); }

/* Nav user */
.user-av {
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: var(--r);
  background: var(--bg2);
  transition: background var(--t), color var(--t);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.nav-user-btn:hover { background: var(--accent-bg); color: var(--accent); }
.nav-user-name { font-size: 13px; font-weight: 700; }
.nav-auth-btn {
  display: flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  transition: opacity var(--t);
}
.nav-auth-btn:hover { opacity: .8; }
.nav-auth-btn.solid { background: var(--accent); color: #fff; }
.nav-auth-btn.solid:hover { opacity: .88; }

/* Mobile burger */
.nav-menu { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.nav-menu .nav-actions { margin-left: auto; }
.nav-burger-check, .nav-burger { display: none; }

/* ══ HERO STRIP ══════════════════════════════════════════════════════════════ */
.hero-strip {
  position: relative;
  padding: 52px 0 48px;
  overflow: hidden;
}
.hero-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 65% 50%, rgba(0, 80, 220, .16) 0%, transparent 70%),
    linear-gradient(160deg, #06080f 0%, #0a1025 45%, #101830 75%, #080d1e 100%);
}
[data-theme="light"] .hero-strip::before {
  background:
    radial-gradient(ellipse 90% 70% at 65% 50%, rgba(0, 80, 220, .12) 0%, transparent 70%),
    linear-gradient(160deg, #0a1628 0%, #0d2448 45%, #1a3a6e 75%, #0f2040 100%);
}
.hero-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 28px; }
.hero-icon-wrap {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: var(--r);
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-android-fa { font-size: 52px; color: #fff; }
.hero-text { flex: 1; }
.hero-title {
  font-size: clamp(26px, 4.5vw, 46px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  line-height: 1.08;
  margin-bottom: 10px;
}
.hero-sub { font-size: 15px; color: rgba(255,255,255,.55); font-weight: 400; margin-bottom: 18px; }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--r);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: background var(--t);
}
.hero-chip:hover { background: rgba(255,255,255,.18); }
.hero-chip.ghost { cursor: default; opacity: .65; }
.hero-chip i { font-size: 12px; opacity: .8; }

/* ══ HOME SECTIONS ═══════════════════════════════════════════════════════════ */
.home-section { margin-bottom: var(--sp-l); }
.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-top: var(--sp-l);
}
.home-section-head:first-child { padding-top: 0; }
.home-section-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.35px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.home-section-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 3px;
  transition: opacity var(--t);
}
.home-section-more:hover { opacity: .7; }
.home-section-more i { font-size: 10px; }

/* ══ COLLECTIONS ═════════════════════════════════════════════════════════════ */
.cols-strip { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.col-card {
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 3/2;
  position: relative;
  background: var(--bg3);
  transition: opacity var(--t);
}
.col-card:hover { opacity: .88; }
.col-card-img, .col-card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.col-card-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.04) 55%, transparent 100%); }
.col-card-name { position: absolute; bottom: 10px; left: 12px; right: 12px; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.3; z-index: 1; }

/* ══ APP CARDS ═══════════════════════════════════════════════════════════════ */
.apps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.app-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r);
  padding: 16px;
  color: var(--text);
  transition: background var(--t);
  position: relative;
  overflow: hidden;
}
.app-card:hover { background: var(--surface2); }

/* Icon */
.app-card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.app-icon-wrap { position: relative; flex-shrink: 0; width: 56px; height: 56px; }
.app-icon { width: 56px; height: 56px; border-radius: var(--r); object-fit: cover; background: var(--bg3); display: block; }
.app-icon-ph {
  width: 56px;
  height: 56px;
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 22px;
}
.app-icon-badge {
  position: absolute;
  top: -5px;
  left: -5px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .4px;
  line-height: 1.4;
  z-index: 2;
}
.app-icon-badge.mod { background: var(--green); color: #fff; }
.app-icon-badge.upd { background: var(--accent); color: #fff; }

/* Info */
.app-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.app-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.15px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.app-cat { font-size: 11.5px; color: var(--text3); display: flex; align-items: center; gap: 4px; font-weight: 500; }
.app-cat i { font-size: 9px; }
.app-card-rating { display: flex; align-items: center; gap: 2px; margin-top: 2px; }
.app-card-rating .fa-star, .app-card-rating .fa-regular { font-size: 9px; color: var(--gold); }
.app-card-rating span { font-size: 10.5px; font-weight: 600; color: var(--text3); margin-left: 3px; }

/* Get button */
.app-dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  padding: 0 14px;
  border-radius: var(--r);
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background var(--t), color var(--t);
  margin-left: auto;
  letter-spacing: .1px;
}
.app-card:hover .app-dl-btn { background: var(--accent); color: #fff; }

/* Desc + footer */
.app-card-desc {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
  margin-bottom: 10px;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.app-card-footer { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: auto; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.6;
}
.badge-ver   { background: var(--bg2); color: var(--text3); }
.badge-android { background: var(--green-bg); color: var(--green); }
.badge-size, .badge-dl { background: var(--bg2); color: var(--text3); }
.badge-mod  { background: var(--green-bg); color: var(--green); font-weight: 700; }
.badge-mod i { font-size: 9px; }

/* ══ SECTION / PAGE HEAD ══════════════════════════════════════════════════════ */
.section { margin-bottom: var(--sp-l); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.35px;
}
.section-title i, .section-title svg { color: var(--accent); }
.section-more { font-size: 13px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 3px; }
.section-more:hover { opacity: .7; }
.section-card { background: var(--surface); border-radius: var(--r); padding: var(--sp); }
.page-title {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  letter-spacing: -.4px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .fa-chevron-right { font-size: 8px; opacity: .35; }

/* ══ APP PAGE ════════════════════════════════════════════════════════════════ */
.app-page { max-width: 1140px; margin: 0 auto; padding: var(--sp) var(--sp) var(--sp-l); }
.app-page-inner { display: grid; grid-template-columns: 178px 1fr 178px; gap: 18px; align-items: start; }
.app-side { position: sticky; top: calc(var(--nav-h) + 14px); }
.app-main-col { min-width: 0; display: flex; flex-direction: column; gap: 12px; }

/* App hero */
.app-hero {
  background: var(--surface);
  border-radius: var(--r);
  padding: 22px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.app-hero-top { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: flex-start; }
.app-hero-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--bg3);
}
.app-hero-icon-wrap { position: relative; flex-shrink: 0; }
.app-hero-img { width: 100px; height: 100px; border-radius: var(--r); object-fit: cover; display: block; }
.app-hero-ph {
  width: 100px;
  height: 100px;
  border-radius: var(--r);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  color: var(--text3);
}
.hero-badge {
  position: absolute;
  bottom: -4px;
  left: -4px;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
}
.hero-badge.mod { background: var(--green); color: #fff; }
.app-hero-body { flex: 1; min-width: 0; }
.app-hero-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.35px;
  line-height: 1.18;
  margin-bottom: 7px;
}
.app-hero-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--text3); margin-bottom: 10px; font-weight: 500; }
.meta-cat { color: var(--accent); font-weight: 600; }
.meta-dot { opacity: .35; }
.meta-dev { display: flex; align-items: center; gap: 4px; font-size: 12.5px; }
.meta-dev i { font-size: 10px; }
.meta-dev-link { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; transition: opacity var(--t); }
.meta-dev-link:hover { opacity: .7; }
.app-hero-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.app-hero-actions { flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; min-width: 144px; }

/* Rating block */
.hero-rating {
  background: var(--bg2);
  border-radius: var(--r);
  padding: 10px 14px;
  text-align: center;
  flex-shrink: 0;
  min-width: 88px;
}
.hero-rating-stars { display: flex; justify-content: center; gap: 2px; font-size: 12px; color: var(--gold); margin-bottom: 3px; }
.hero-rating-val { font-size: 16px; font-weight: 900; letter-spacing: -.3px; }
.hero-rating-ct { font-size: 10px; color: var(--text3); }

/* Vote buttons */
.hero-votes { display: flex; gap: 7px; flex-shrink: 0; }
.vote-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: var(--r);
  background: var(--bg2);
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  cursor: pointer;
  transition: background var(--t), color var(--t);
  font-family: var(--font);
}
.vote-btn:hover { background: var(--bg3); }
.vote-up.active { color: var(--green); background: var(--green-bg); }
.vote-dn.active { color: var(--red);   background: var(--red-bg); }

/* Download button */
.hero-dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--t);
  margin-left: auto;
}
.hero-dl-btn:hover { opacity: .88; }

/* Bookmark */
.bookmark-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--r);
  background: var(--bg2);
  color: var(--text3);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t), color var(--t);
  font-family: var(--font);
  flex-shrink: 0;
}
.bookmark-btn:hover { color: var(--accent); background: var(--accent-bg); }
.bookmark-btn.active { color: var(--accent); background: var(--accent-bg); }

/* Screenshots */
.ss-strip { background: var(--surface); border-radius: var(--r); padding: 16px; position: relative; }
.ss-strip .ss-carousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ss-strip .ss-carousel::-webkit-scrollbar { display: none; }
.ss-strip .ss-slide {
  flex: 0 0 calc(33.333% - 7px);
  scroll-snap-align: start;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  position: relative;
  background: var(--bg3);
  flex-shrink: 0;
}
.ss-strip .ss-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-strip .ss-slide .ss-zoom {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all .2s;
}
.ss-strip .ss-slide:hover .ss-zoom { background: rgba(0,0,0,.3); opacity: 1; }
.ss-strip .ss-zoom i { font-size: 18px; color: #fff; }
.ss-strip .ss-arrow {
  position: absolute;
  top: 25%;
  transform: translateY(-70%);
  width: 32px;
  height: 32px;
  border-radius: var(--r);
  background: rgba(0,0,0,.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 2;
  backdrop-filter: blur(4px);
  transition: background var(--t);
}
.ss-strip .ss-arrow:hover { background: var(--accent); }
.ss-strip .ss-prev { left: 24px; }
.ss-strip .ss-next { right: 24px; }
.ss-strip .ss-dots { display: flex; justify-content: center; gap: 5px; padding: 9px 0 0; }
.ss-strip .ss-dot { width: 5px; height: 5px; border-radius: 5px; background: var(--bg3); cursor: pointer; transition: all .22s; }
.ss-strip .ss-dot.active { width: 18px; border-radius: 3px; background: var(--accent); }

/* Карусель (совместимость) */
.ss-carousel-wrap { position: relative; }
.ss-carousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.ss-carousel::-webkit-scrollbar { display: none; }
.ss-slide {
  flex: 0 0 calc(33.333% - 7px);
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg3);
  cursor: pointer;
  transition: opacity var(--t);
}
.ss-slide:hover { opacity: .88; }
.ss-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-zoom { position: absolute; inset: 0; background: rgba(0,0,0,0); display: flex; align-items: center; justify-content: center; opacity: 0; transition: all .2s; }
.ss-slide:hover .ss-zoom { background: rgba(0,0,0,.3); opacity: 1; }
.ss-zoom i { font-size: 18px; color: #fff; }
.ss-arrow {
  position: absolute; top: 0; bottom: 0;
  height: 34px; width: 34px;
  border-radius: var(--r);
  background: rgba(0,0,0,.55);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; z-index: 2;
  transition: background var(--t);
  margin: auto 0;
  backdrop-filter: blur(6px);
}
.ss-arrow:hover { background: var(--accent); }
.ss-prev { left: 8px; }
.ss-next { right: 8px; }
.ss-dots { display: flex; justify-content: center; gap: 5px; padding: 9px 0 0; }
.ss-dot { width: 5px; height: 5px; border-radius: 5px; background: var(--bg3); cursor: pointer; transition: all .22s; }
.ss-dot.active { width: 18px; border-radius: 3px; background: var(--accent); }

/* Lightbox */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(12px);
}
.lb-img-wrap { max-width: 90vw; max-height: 86vh; display: flex; align-items: center; justify-content: center; }
.lb-img-wrap img { max-width: 100%; max-height: 86vh; border-radius: var(--r); object-fit: contain; }
.lb-close {
  position: fixed; top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: var(--r);
  background: rgba(255,255,255,.12);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; z-index: 2001;
  transition: background var(--t);
}
.lb-close:hover { background: var(--red); }
.lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: var(--r);
  background: rgba(255,255,255,.1);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; z-index: 2001;
  transition: background var(--t);
}
.lb-nav:hover { background: var(--accent); }
.lb-nav-prev { left: 16px; }
.lb-nav-next { right: 16px; }
.lb-counter {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.6);
  color: rgba(255,255,255,.8);
  font-size: 12px; font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--r);
  backdrop-filter: blur(4px);
}

/* ══ APP CONTENT ══════════════════════════════════════════════════════════════ */
.app-card-detail { background: var(--surface); border-radius: var(--r); padding: var(--sp); margin-bottom: 12px; }
.app-content { background: var(--surface); border-radius: var(--r); padding: var(--sp); display: flex; flex-direction: column; gap: 22px; }
.app-description, .app-desc { font-size: 14px; color: var(--text2); line-height: 1.76; }
.app-layout { display: grid; grid-template-columns: 188px 1fr 188px; gap: 20px; align-items: start; }
.app-main { min-width: 0; }
.app-sidebar { position: sticky; top: calc(var(--nav-h) + 14px); }

/* Mod features */
.mod-box, .mod-features-box { background: var(--green-bg); border-radius: var(--r); padding: 16px 18px; margin-bottom: 20px; }
.mod-box-head, .mod-features-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.mod-list, .mod-features-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.mod-list li, .mod-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.55;
}
.mod-ic, .mod-feat-icon {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: rgba(23, 178, 106, .16);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.mod-ic i, .mod-feat-icon i { font-size: 11px; color: var(--green); }

/* FAQ */
.app-faq { margin: 22px 0; }
.app-faq-title {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  letter-spacing: -.2px;
}
.app-faq-title i { color: var(--accent); }
.app-faq-item { background: var(--bg2); border-radius: var(--r); overflow: hidden; margin-bottom: 6px; }
.app-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background var(--t);
}
.app-faq-q:hover { background: var(--bg3); }
.app-faq-arr {
  font-size: 10px;
  color: var(--text3);
  flex-shrink: 0;
  transition: transform .28s var(--ease);
}
/* Collapsed by default */
.app-faq-a {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  transition:
    max-height .32s var(--ease),
    padding    .32s var(--ease);
}
/* Open state — toggled via JS (.app-faq-item.open) */
.app-faq-item.open .app-faq-a {
  max-height: 600px;
  padding: 10px 16px 16px;
}
.app-faq-item.open .app-faq-arr {
  transform: rotate(180deg);
}

/* ══ WIDGET / SIDEBAR ════════════════════════════════════════════════════════ */
.widget { background: var(--surface); border-radius: var(--r); overflow: hidden; margin-bottom: 12px; }
.widget-title {
  padding: 10px 13px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text3);
  border-bottom: 1px solid var(--bg3);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.widget-title i { color: var(--accent); }
.widget-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  transition: background var(--t);
  color: var(--text);
}
.widget-item:hover { background: var(--bg2); }
.widget-icon { width: 34px; height: 34px; border-radius: var(--r); object-fit: cover; flex-shrink: 0; }
.widget-icon-ph {
  width: 34px; height: 34px;
  border-radius: var(--r);
  background: var(--bg3);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text3); font-size: 13px;
}
.widget-info { flex: 1; min-width: 0; }
.widget-name { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget-dl { font-size: 10px; color: var(--text3); display: flex; align-items: center; gap: 2px; margin-top: 1px; }

/* ══ VPN BANNER ══════════════════════════════════════════════════════════════ */
.vpn-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--accent-bg);
  border-radius: var(--r);
  transition: background var(--t);
}
.vpn-banner:hover { background: rgba(0, 102, 204, .15); }
.vpn-banner-icon { width: 42px; height: 42px; flex-shrink: 0; }
.vpn-banner-icon svg { width: 42px; height: 42px; }
.vpn-banner-body { flex: 1; min-width: 0; }
.vpn-banner-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--text3); letter-spacing: .7px; margin-bottom: 2px; }
.vpn-banner-title { font-size: 14px; font-weight: 700; color: var(--text); }
.vpn-banner-sub { font-size: 12px; color: var(--green); }
.vpn-banner-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ══ DOWNLOAD SECTION ════════════════════════════════════════════════════════ */
.download-section { margin-bottom: 18px; }
.download-title {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  letter-spacing: -.2px;
}
.download-title i { color: var(--accent); }
.download-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: var(--accent);
  border-radius: var(--r);
  cursor: pointer;
  transition: opacity var(--t);
  margin-bottom: 8px;
}
.download-file-row:hover { opacity: .88; }
.download-file-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.download-file-icon {
  width: 36px; height: 36px;
  border-radius: var(--r);
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.download-file-icon i { font-size: 17px; color: #fff; }
.download-file-details { min-width: 0; }
.download-file-name-main { font-size: 13.5px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-file-sub { font-size: 11.5px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.download-file-sub .dot { opacity: .4; }
.download-btn-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: rgba(255,255,255,.2);
  border-radius: var(--r);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}
.gplay-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: var(--bg2);
  border-radius: var(--r);
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--t);
  margin-bottom: 8px;
}
.gplay-row:hover { background: var(--bg3); }
.gplay-row i { font-size: 14px; color: #01875f; }
.gplay-label { font-weight: 400; color: var(--text3); font-size: 12px; }

/* Install guide */
.install-guide { background: var(--bg2); border-radius: var(--r); overflow: hidden; margin-top: 18px; }
.install-guide-title {
  font-size: 14.5px;
  font-weight: 800;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--bg3);
  letter-spacing: -.2px;
}
.install-guide-title i { color: var(--accent); }
.install-guide-body { padding: 16px 18px; }
.install-guide-subtitle { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 7px; margin-bottom: 11px; color: var(--text2); }
.install-guide-subtitle i { color: var(--accent); font-size: 11px; }
.install-steps { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.install-steps li { font-size: 13.5px; color: var(--text2); line-height: 1.6; padding-left: 4px; }
.install-steps li strong { color: var(--text); font-weight: 700; }
.install-done {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--green-bg);
  border-radius: var(--r);
  font-size: 13px; font-weight: 700; color: var(--green);
}

/* ══ APP COLLECTIONS IN SIDEBAR ══════════════════════════════════════════════ */
.app-collections-section { margin: 18px 0; }
.app-collections-head {
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: .6px;
}
.app-collections-cards { display: flex; flex-direction: column; gap: 7px; }
.app-col-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  background: var(--bg2);
  border-radius: var(--r);
  transition: background var(--t);
  color: var(--text);
}
.app-col-card:hover { background: var(--bg3); }
.app-col-card-bg {
  width: 44px; height: 44px;
  border-radius: var(--r);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.app-col-card-bg img { width: 100%; height: 100%; object-fit: cover; }
.app-col-card-bg i { font-size: 17px; color: rgba(255,255,255,.85); }
.app-col-card-info { flex: 1; min-width: 0; }
.app-col-card-name { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-col-card-meta { font-size: 11px; color: var(--text3); margin-top: 2px; }
.app-col-card-arr { font-size: 10px; color: var(--text3); flex-shrink: 0; transition: color var(--t); }
.app-col-card:hover .app-col-card-arr { color: var(--accent); }

/* ══ MODALS ══════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.modal-box {
  background: var(--surface);
  border-radius: var(--r);
  padding: 28px 24px;
  max-width: 370px; width: 100%;
  text-align: center;
}
.modal-icon { font-size: 36px; color: var(--accent); margin-bottom: 12px; }
.modal-title { font-size: 17px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.25px; }
.modal-text { font-size: 13.5px; color: var(--text2); line-height: 1.6; }
.dl-modal-overlay { z-index: 1100; }
.dl-modal-box {
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
  max-width: 420px; width: 100%;
  position: relative;
}
.dl-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 26px; height: 26px;
  border-radius: var(--r);
  background: var(--bg3);
  color: var(--text3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.dl-modal-app { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; }
.dl-modal-icon { width: 48px; height: 48px; border-radius: var(--r); flex-shrink: 0; }
.dl-modal-app-name { font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.dl-modal-app-meta { font-size: 12px; color: var(--text3); margin-top: 2px; }
.dl-modal-ad {
  background: var(--bg2);
  border-top: 1px solid var(--bg3);
  border-bottom: 1px solid var(--bg3);
  min-height: 100px;
  display: flex; align-items: center; justify-content: center;
}
.dl-modal-ad-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text3); font-size: 12px; }
.dl-modal-ad-inner i { font-size: 24px; opacity: .2; }
.dl-modal-footer {
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.dl-modal-countdown { font-size: 12px; color: var(--text3); }
.dl-modal-countdown strong { color: var(--accent); font-weight: 800; }
.dl-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 800;
  transition: opacity .2s;
}
.dl-start-btn--locked { background: var(--bg3); color: var(--text3); cursor: not-allowed; pointer-events: none; opacity: .75; }
.dl-start-btn--ready { background: var(--accent); color: #fff; cursor: pointer; pointer-events: auto; opacity: 1; }
.dl-start-btn--locked .fa-hourglass-half { animation: hourglass 1.5s ease-in-out infinite; }
@keyframes hourglass { 0%,100%{transform:rotate(0)} 50%{transform:rotate(180deg)} }

/* ══ COMMENTS ════════════════════════════════════════════════════════════════ */
.comments-head {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.3px;
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bg3);
}
.comments-head i { color: var(--accent); }
.comments-list { margin-top: 16px; display: flex; flex-direction: column; gap: 0; }
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 13px;
  background: var(--bg2);
  border-radius: var(--r);
  font-size: 13.5px;
  color: var(--text);
  transition: background var(--t);
  margin-bottom: 10px;
}
.comment-form input:focus,
.comment-form textarea:focus { background: var(--surface2); }
.comment-form textarea { min-height: 84px; resize: vertical; }
.comment-item {
  display: flex;
  gap: 11px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--bg3);
}
.comment-item:last-child { border: none; margin-bottom: 0; padding-bottom: 0; }
.comment-avatar {
  width: 36px; height: 36px;
  border-radius: var(--r);
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  flex-shrink: 0;
}
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; flex-wrap: wrap; }
.comment-author { font-size: 13px; font-weight: 700; }
.comment-author.is-user { color: var(--accent); }
.comment-date { font-size: 11px; color: var(--text3); display: flex; align-items: center; gap: 3px; }
.comment-text { font-size: 13px; color: var(--text2); line-height: 1.6; }
.comment-cu-info { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text3); padding: 8px 12px; background: var(--bg2); border-radius: var(--r); margin-bottom: 8px; }
.comment-pts {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; color: var(--text3);
  background: var(--bg2); padding: 1px 7px;
  border-radius: var(--r);
}

/* ══ CATALOG / FILTER ════════════════════════════════════════════════════════ */
.cat-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.cat-filter a {
  padding: 6px 14px;
  border-radius: var(--r);
  font-size: 13px; font-weight: 600;
  background: var(--surface);
  color: var(--text2);
  transition: background var(--t), color var(--t);
}
.cat-filter a:hover,
.cat-filter a.active { color: var(--accent); background: var(--accent-bg); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination a,
.pagination span {
  width: 36px; height: 36px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 600;
  background: var(--surface);
  color: var(--text2);
  transition: background var(--t), color var(--t);
}
.pagination a:hover,
.pagination span.cur { color: var(--accent); background: var(--accent-bg); }
.no-results { text-align: center; padding: 64px 20px; color: var(--text3); }
.no-results-icon { font-size: 48px; margin-bottom: 14px; opacity: .2; display: block; }

/* ══ SEO BLOCK ══════════════════════════════════════════════════════════════ */
.seo-block { padding: var(--sp); background: var(--surface); border-radius: var(--r); margin-bottom: 0; }
.seo-block h2 { font-size: 16px; font-weight: 800; margin-bottom: 16px; letter-spacing: -.25px; }
.seo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 18px; }
.seo-cols h3 { font-size: 13px; font-weight: 700; margin: 0 0 5px; color: var(--text); }
.seo-cols p { font-size: 13px; color: var(--text3); line-height: 1.7; margin: 0 0 13px; }
.seo-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.seo-tags a { font-size: 12px; padding: 5px 12px; background: var(--bg2); border-radius: var(--r); color: var(--text3); font-weight: 500; transition: color var(--t); }
.seo-tags a:hover { color: var(--accent); }

/* ══ FOOTER ══════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--surface);
  border-top: 1px solid rgba(0, 102, 204, .07);
  padding: 22px 0 26px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--sp);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Left — logo + copy */
.footer-brand { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  transition: opacity var(--t);
}
.footer-logo-link:hover { opacity: .8; }
.footer-copy { font-size: 12px; color: var(--text3); white-space: nowrap; }

/* Legacy selectors — keep compat */
.footer-logo { display: flex; align-items: center; gap: 9px; }
.footer-logo .a, .footer-logo em, .footer-brand em { font-style: normal; color: var(--accent); }
.footer-logo-icon, .footer-brand-icon {
  width: 28px; height: 28px; border-radius: var(--r);
  background: linear-gradient(145deg, #1a6fff, #0044cc);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer-logo-icon svg, .footer-brand-icon svg { width: 26px; height: 26px; display: block; }
.footer-brand-icon i { font-size: 16px; color: #fff; }

/* Centre nav — always a row */
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.footer-nav a,
.footer-links a,
.footer-links-col a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  background: var(--bg2);
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--t), background var(--t);
}
.footer-nav a:hover,
.footer-links a:hover,
.footer-links-col a:hover { color: var(--accent); background: var(--accent-bg); }
.footer-nav a i,
.footer-links i,
.footer-links-col i { font-size: 11px; }

/* Legacy col wrappers */
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-links,
.footer-links-col { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: center; flex: 1; justify-content: center; }

/* Right — theme button */
.footer-right { display: flex; align-items: center; flex-shrink: 0; }
.footer-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--r);
  background: var(--bg2);
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: color var(--t), background var(--t);
}
.footer-theme-btn:hover { color: var(--accent); background: var(--accent-bg); }
.footer-theme-btn i { font-size: 13px; }

/* ── Theme modal ─────────────────────────────────────────────────────────── */
.theme-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}
.theme-modal-overlay.open { opacity: 1; pointer-events: auto; }
.theme-modal {
  background: var(--surface);
  border-radius: var(--r);
  width: 100%;
  max-width: 260px;
  overflow: hidden;
}
.theme-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bg3);
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.theme-modal-close {
  width: 26px; height: 26px;
  border-radius: var(--r);
  background: var(--bg2);
  color: var(--text3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-family: inherit;
  transition: background var(--t), color var(--t);
}
.theme-modal-close:hover { background: var(--bg3); color: var(--text); }
.theme-modal-options { display: flex; flex-direction: column; padding: 8px; gap: 4px; }
.theme-modal-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r);
  background: transparent;
  color: var(--text2);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  width: 100%;
  text-align: left;
  transition: background var(--t), color var(--t);
}
.theme-modal-opt:hover { background: var(--bg2); color: var(--text); }
.theme-modal-opt.active { background: var(--accent-bg); color: var(--accent); }
.theme-modal-icon {
  width: 32px; height: 32px;
  border-radius: var(--r);
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
  transition: background var(--t), color var(--t);
}
.theme-modal-opt.active .theme-modal-icon { background: var(--accent-bg); color: var(--accent); }
.theme-modal-label { flex: 1; }
.theme-modal-check { font-size: 11px; color: var(--accent); opacity: 0; transition: opacity var(--t); }
.theme-modal-opt.active .theme-modal-check { opacity: 1; }

/* ══ STATIC PAGES ════════════════════════════════════════════════════════════ */
.static-page { line-height: 1.8; color: var(--text2); }
.static-page h2 { font-size: 16px; font-weight: 800; color: var(--text); margin: 24px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--bg3); letter-spacing: -.25px; }
.static-page h2:first-child { margin-top: 0; }
.static-page h3 { font-size: 13.5px; font-weight: 700; color: var(--text); margin: 14px 0 5px; }
.static-page p { margin: 0 0 11px; font-size: 14px; }
.static-page ul { margin: 0 0 13px; padding-left: 20px; }
.static-page li { font-size: 14px; margin-bottom: 5px; }
.static-page a { color: var(--accent); }
.static-updated { font-size: 12.5px; color: var(--text3); display: flex; align-items: center; gap: 5px; margin-bottom: 20px; }
.static-updated i { font-size: 11px; }
.tg-contact-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r);
  font-size: 14px; font-weight: 700;
  margin: 10px 0;
  transition: opacity var(--t);
}
.tg-contact-btn:hover { opacity: .88; }
.tg-contact-btn i { font-size: 17px; }

/* ══ AUTH ════════════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  padding: 32px 16px;
}
.auth-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r);
  padding: 36px 32px;
  width: 100%; max-width: 420px;
}
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 22px; }
.auth-logo-name { font-size: 17px; font-weight: 800; letter-spacing: -.25px; }
.auth-title { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 6px; letter-spacing: -.35px; }
.auth-sub { font-size: 13.5px; color: var(--text3); text-align: center; margin-bottom: 22px; }
.auth-err { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--red-bg); border-radius: var(--r); font-size: 13px; color: var(--red); margin-bottom: 16px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field label { font-size: 12.5px; font-weight: 600; color: var(--text2); }
.auth-field input { padding: 11px 14px; background: var(--bg2); border-radius: var(--r); font-size: 14px; color: var(--text); transition: background var(--t); }
.auth-field input:focus { background: var(--surface); }
.auth-hint { font-size: 11px; color: var(--text3); font-weight: 400; margin-left: 4px; }
.auth-btn {
  padding: 13px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r);
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: opacity var(--t);
  margin-top: 4px;
}
.auth-btn:hover { opacity: .88; }
.auth-switch { text-align: center; font-size: 13.5px; color: var(--text3); margin-top: 18px; }
.auth-switch a { color: var(--accent); font-weight: 600; }

/* ══ PROFILE ══════════════════════════════════════════════════════════════════ */
.profile-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.profile-sidebar { position: sticky; top: calc(var(--nav-h) + 16px); }
.profile-av-card { background: var(--surface); border-radius: var(--r); padding: 24px 20px; text-align: center; margin-bottom: 12px; }
.profile-av-card .user-av { margin: 0 auto 12px; font-size: 32px; width: 80px; height: 80px; border-radius: var(--r); }
.profile-av-card img { margin: 0 auto 12px; width: 80px; height: 80px; border-radius: var(--r); object-fit: cover; }
.profile-av-name { font-size: 16px; font-weight: 800; letter-spacing: -.25px; margin-bottom: 3px; }
.profile-av-login { font-size: 12.5px; color: var(--text3); margin-bottom: 10px; }
.profile-points {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700;
  padding: 4px 12px;
  background: var(--bg2);
  border-radius: var(--r);
  color: var(--text2);
}
.profile-stats-card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 14px;
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 8px; text-align: center;
  margin-bottom: 12px;
}
.profile-stat span { display: block; font-size: 20px; font-weight: 900; letter-spacing: -.4px; color: var(--text); }
.profile-stat label { font-size: 10.5px; color: var(--text3); font-weight: 500; margin-top: 2px; display: block; }
.profile-nav { background: var(--surface); border-radius: var(--r); overflow: hidden; }
.profile-nav-link {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 14px;
  font-size: 13px; font-weight: 600;
  color: var(--text2);
  transition: background var(--t), color var(--t);
  border-bottom: 1px solid var(--bg3);
}
.profile-nav-link:last-child { border: none; }
.profile-nav-link:hover,
.profile-nav-link.active { background: var(--accent-bg); color: var(--accent); }
.profile-nav-link.danger { color: var(--red); }
.profile-nav-link.danger:hover { background: var(--red-bg); color: var(--red); }
.profile-nav-link i { font-size: 13px; width: 16px; text-align: center; }
.profile-main { display: flex; flex-direction: column; gap: 16px; }
.profile-alert { display: flex; align-items: center; gap: 9px; padding: 12px 16px; border-radius: var(--r); font-size: 13.5px; font-weight: 600; }
.profile-alert.ok { background: var(--green-bg); color: var(--green); }
.profile-alert.err { background: var(--red-bg); color: var(--red); }
.profile-section { background: var(--surface); border-radius: var(--r); padding: var(--sp); }
.profile-section-title {
  font-size: 17px; font-weight: 800; letter-spacing: -.3px;
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--bg3);
}
.profile-section-title i { color: var(--accent); font-size: 16px; }
.profile-form { display: flex; flex-direction: column; gap: 13px; }
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.pf-field { display: flex; flex-direction: column; gap: 5px; }
.pf-field label { font-size: 12px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .4px; }
.pf-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text3); font-size: 11px; }
.pf-field input,
.pf-field textarea,
.pf-field select {
  padding: 10px 13px;
  background: var(--bg2);
  border-radius: var(--r);
  font-size: 13.5px;
  color: var(--text);
  transition: background var(--t);
  font-family: var(--font);
}
.pf-field input:focus,
.pf-field textarea:focus { background: var(--surface2); }
.pf-field textarea { resize: vertical; min-height: 80px; }
.pf-btn {
  padding: 11px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r);
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: opacity var(--t);
  align-self: flex-start;
}
.pf-btn:hover { opacity: .88; }
.pf-btn.outline { background: var(--accent-bg); color: var(--accent); }
.pf-empty { text-align: center; padding: 40px 20px; color: var(--text3); }
.pf-empty i { font-size: 36px; opacity: .2; margin-bottom: 12px; display: block; }
.pf-empty p { font-size: 14px; }

/* ══ ACHIEVEMENTS ════════════════════════════════════════════════════════════ */
.achs-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.ach-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--bg2); }
.ach-card.earned { background: var(--green-bg); }
.ach-card.locked { opacity: .6; }
.ach-icon { width: 40px; height: 40px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.ach-info { flex: 1; min-width: 0; }
.ach-name { font-size: 13px; font-weight: 800; margin-bottom: 3px; letter-spacing: -.1px; }
.ach-desc { font-size: 11.5px; color: var(--text3); line-height: 1.4; }
.ach-date, .ach-pts { font-size: 11px; color: var(--text3); margin-top: 5px; display: flex; align-items: center; gap: 4px; }

/* ══ THEME TOGGLE ════════════════════════════════════════════════════════════ */
.theme-toggle { display: flex; align-items: center; background: var(--bg2); border-radius: var(--r); padding: 3px; gap: 2px; }
.theme-opt {
  width: 32px; height: 28px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text3);
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.theme-opt.active { background: var(--surface); color: var(--text); }
.theme-opt:hover { color: var(--text); }

/* ══ VERIFIED BADGE ══════════════════════════════════════════════════════════ */
.verified-badge {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  background: var(--green-bg);
  border-radius: var(--r);
  margin-bottom: 14px;
}
.verified-badge-icon { width: 38px; height: 38px; border-radius: var(--r); background: rgba(23,178,106,.16); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.verified-badge-icon i { font-size: 18px; color: var(--green); }
.verified-badge-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.verified-title { font-size: 13.5px; font-weight: 800; color: var(--green); }
.verified-sub { font-size: 12px; color: var(--text3); }
.verified-check { flex-shrink: 0; font-size: 20px; color: var(--green); opacity: .7; }

/* ══ COLLAPSIBLE DESCRIPTION ═════════════════════════════════════════════════ */
.app-desc-wrap { position: relative; }
.desc-collapsible .app-desc { max-height: 220px; overflow: hidden; transition: max-height .4s var(--ease); }
.desc-collapsible.desc-open .app-desc { max-height: 9999px; }
.desc-fade {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none;
  transition: opacity .3s;
}
.desc-collapsible.desc-open .desc-fade { opacity: 0; }
.desc-toggle {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 10px;
  background: transparent;
  color: var(--accent);
  font-size: 13.5px; font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity var(--t);
  margin-top: 4px;
}
.desc-toggle:hover { opacity: .75; }
.desc-toggle i { font-size: 11px; transition: transform .3s; }
#desc-toggle-icon { transition: transform .35s var(--ease); }

/* ══ FEATURED CAROUSEL ═══════════════════════════════════════════════════════ */
.feat-carousel { position: relative; border-radius: var(--r); overflow: hidden; user-select: none; }
.feat-track { display: flex; transition: transform .5s var(--ease); will-change: transform; height: 200px; }
.feat-slide {
  flex: 0 0 100%; min-width: 0;
  position: relative;
  display: flex; align-items: stretch;
  text-decoration: none; color: #fff;
  overflow: hidden;
}
.feat-slide-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.feat-slide-overlay { position: absolute; inset: 0; background: linear-gradient(135deg,rgba(0,0,0,.6) 0%,rgba(0,0,0,.2) 60%,rgba(0,0,0,.4) 100%); }
.feat-slide-content {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 18px;
  padding: 22px 24px; width: 100%; min-height: 200px;
}
.feat-slide-left { flex-shrink: 0; }
.feat-slide-icon { width: 88px; height: 88px; border-radius: var(--r); object-fit: cover; display: block; }
.feat-slide-icon-ph { background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 36px; color: #fff; }
.feat-slide-label { display: flex; gap: 7px; margin-bottom: 7px; }
.feat-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: var(--r); font-size: 11px; font-weight: 700; background: rgba(255,255,255,.2); color: #fff; letter-spacing: .3px; backdrop-filter: blur(4px); }
.feat-badge.mod { background: var(--green); color: #fff; }
.feat-slide-title { font-size: clamp(16px,2.8vw,22px); font-weight: 800; line-height: 1.15; letter-spacing: -.35px; margin-bottom: 6px; color: #fff; }
.feat-slide-meta { display: flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(255,255,255,.65); margin-bottom: 8px; flex-wrap: wrap; }
.feat-slide-desc { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.55; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.feat-slide-cta { flex-shrink: 0; }
.feat-cta-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px; border-radius: var(--r); background: #fff; color: #000; font-size: 13px; font-weight: 800; letter-spacing: .1px; transition: opacity .15s; white-space: nowrap; }
.feat-slide:hover .feat-cta-btn { opacity: .88; }
.feat-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 2; }
.feat-dot { width: 6px; height: 6px; border-radius: var(--r); background: rgba(255,255,255,.35); cursor: pointer; transition: all .25s; padding: 0; }
.feat-dot.active { width: 20px; background: #fff; }
.feat-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: var(--r); background: rgba(0,0,0,.4); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 13px; z-index: 2; backdrop-filter: blur(6px); transition: background .15s; }
.feat-arrow:hover { background: rgba(0,0,0,.65); }
.feat-prev { left: 12px; }
.feat-next { right: 12px; }

/* Featured Hero */
.feat-label { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-bg); padding: 3px 9px; border-radius: var(--r); margin-bottom: 6px; }
.feat-label i { font-size: 10px; }
.feat-hero-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.feat-hero-main {
  flex: 1 1 300px;
  display: block;
  border-radius: var(--r);
  background: linear-gradient(135deg, #06080f 0%, #101830 100%);
  overflow: hidden;
  text-decoration: none;
  transition: opacity var(--t);
}
.feat-hero-main:hover { opacity: .9; }
.feat-hero-main-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; }
.feat-hero-icon { width: 72px; height: 72px; border-radius: var(--r); object-fit: cover; }
.feat-hero-info { flex: 1; }
.feat-hero-title { font-size: 20px; font-weight: 900; color: #fff; letter-spacing: -.35px; line-height: 1.2; margin-bottom: 4px; }
.feat-hero-cat { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 8px; }
.feat-hero-desc { font-size: 12.5px; color: rgba(255,255,255,.55); line-height: 1.55; }
.feat-hero-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px; border-radius: var(--r); background: #fff; color: #000; font-size: 13px; font-weight: 800; margin-top: auto; }
.feat-side-list { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden; }
.feat-side-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; transition: background var(--t); color: var(--text); text-decoration: none; border-bottom: 1px solid var(--bg3); }
.feat-side-item:last-child { border-bottom: none; }
.feat-side-item:hover { background: var(--bg2); }
.feat-side-icon { width: 42px; height: 42px; border-radius: var(--r); object-fit: cover; flex-shrink: 0; }
.feat-side-icon-ph { width: 42px; height: 42px; border-radius: var(--r); background: var(--bg3); display: flex; align-items: center; justify-content: center; color: var(--text3); font-size: 16px; flex-shrink: 0; }
.feat-side-info { flex: 1; min-width: 0; }
.feat-side-name { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 3px; }
.feat-side-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 11.5px; color: var(--text3); }

/* ══ HOMEPAGE HERO ════════════════════════════════════════════════════════════ */
.hp-hero {
  position: relative;
  padding: 56px 0 52px;
  margin-bottom: var(--sp-l);
  overflow: hidden;
}
.hp-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 65% at 75% 50%, rgba(0,80,220,.18) 0%, transparent 70%),
    linear-gradient(160deg, #06080f 0%, #0a1025 45%, #101830 75%, #080d1e 100%);
}
.hp-hero-inner { max-width: 1120px; margin: 0 auto; padding: 0 var(--sp); display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; position: relative; z-index: 1; }
.hp-hero-text { flex: 1; min-width: 280px; }
.hp-hero-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 16px; }
.hp-hero-label i { color: #2997ff; font-size: 14px; }
.hp-hero-title { font-size: clamp(26px,4vw,44px); font-weight: 800; color: #fff; letter-spacing: -.55px; line-height: 1.1; margin-bottom: 14px; }
.hp-hero-sub { font-size: 15px; color: rgba(255,255,255,.5); line-height: 1.65; margin-bottom: 24px; max-width: 480px; }
.hp-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: var(--r); font-size: 14px; font-weight: 700; transition: opacity .18s; text-decoration: none; }
.hp-btn i { font-size: 13px; }
.hp-btn-primary { background: #fff; color: #000; }
.hp-btn-primary:hover { opacity: .88; }
.hp-btn-secondary { background: rgba(255,255,255,.12); color: #fff; }
.hp-btn-secondary:hover { background: rgba(255,255,255,.2); }
.hp-hero-stats { display: flex; background: rgba(255,255,255,.07); border-radius: var(--r); overflow: hidden; flex-shrink: 0; }
.hp-stat { padding: 18px 28px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.hp-stat:last-child { border-right: none; }
.hp-stat span { display: block; font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -.5px; margin-bottom: 3px; }
.hp-stat label { font-size: 11px; color: rgba(255,255,255,.4); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }

/* ══ TOP-100 ══════════════════════════════════════════════════════════════════ */
.top-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; align-items: center; }
.top-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px;
  border-radius: var(--r);
  font-size: 13px; font-weight: 600;
  color: var(--text2);
  background: var(--surface);
  transition: background var(--t), color var(--t);
  text-decoration: none;
}
.top-tab i { font-size: 12px; }
.top-tab:hover { background: var(--bg3); color: var(--text); }
.top-tab.active { background: var(--accent); color: #fff; }
.top-tab-cat { font-size: 12px; padding: 6px 12px; }
.top-tabs-sep { width: 1px; height: 22px; background: var(--bg3); margin: 0 4px; flex-shrink: 0; }
.top-list { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden; }
.top-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  transition: background var(--t);
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--bg3);
}
.top-item:last-child { border-bottom: none; }
.top-item:hover { background: var(--bg2); }
.top-rank { width: 36px; flex-shrink: 0; text-align: center; font-size: 14px; font-weight: 900; color: var(--text3); display: flex; align-items: center; justify-content: center; }
.top-rank-1 i { color: #f59e0b; font-size: 18px; }
.top-rank-2 i { color: #94a3b8; font-size: 17px; }
.top-rank-3 i { color: #c97c34; font-size: 16px; }
.top-icon-wrap { position: relative; flex-shrink: 0; }
.top-icon { width: 48px; height: 48px; border-radius: var(--r); object-fit: cover; display: block; background: var(--bg3); }
.top-icon-ph { width: 48px; height: 48px; border-radius: var(--r); background: var(--bg3); display: flex; align-items: center; justify-content: center; color: var(--text3); font-size: 18px; }
.top-info { flex: 1; min-width: 0; }
.top-name { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; letter-spacing: -.15px; }
.top-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.top-cat { font-size: 11.5px; color: var(--text3); display: flex; align-items: center; gap: 3px; }
.top-cat i { font-size: 9px; }
.top-ver { font-size: 11px; color: var(--text3); background: var(--bg3); padding: 1px 6px; border-radius: 4px; }
.top-stats { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 80px; }
.top-rating { font-size: 12px; font-weight: 700; color: var(--text2); display: flex; align-items: center; gap: 4px; }
.top-rating i { color: var(--gold); font-size: 11px; }
.top-downloads { font-size: 12px; color: var(--text3); display: flex; align-items: center; gap: 4px; font-weight: 600; }
.top-downloads i { font-size: 10px; color: var(--accent); }

/* ══ DEVELOPER PAGE ══════════════════════════════════════════════════════════ */
.dev-banner-wrap { position: relative; height: 200px; overflow: hidden; background: var(--bg3); }
.dev-banner-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dev-banner-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.5) 100%); }
.dev-header { background: var(--surface); border-radius: var(--r); padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dev-header--has-banner { margin-top: -40px; position: relative; z-index: 1; }
.dev-header-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dev-avatar { width: 72px; height: 72px; border-radius: var(--r); object-fit: cover; flex-shrink: 0; }
.dev-avatar-ph { background: var(--accent-bg); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 28px; border-radius: var(--r); }
.dev-name { font-size: 22px; font-weight: 900; letter-spacing: -.35px; margin-bottom: 5px; }
.dev-meta { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text3); flex-wrap: wrap; }
.dev-meta i { font-size: 11px; color: var(--accent); }
.dev-meta-dot { opacity: .35; }
.dev-link { color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.dev-link:hover { opacity: .7; }
.dev-header-socials { display: flex; gap: 7px; flex-shrink: 0; }
.dev-social-btn { width: 36px; height: 36px; border-radius: var(--r); background: var(--bg2); color: var(--text2); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: background var(--t), color var(--t); }
.dev-social-btn:hover { background: var(--accent); color: #fff; }
.dev-desc { font-size: 14px; color: var(--text2); line-height: 1.75; white-space: pre-line; }

/* ══ CONTACT FORM ════════════════════════════════════════════════════════════ */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-field { display: flex; flex-direction: column; gap: 5px; }
.cf-field label { font-size: 12.5px; font-weight: 700; color: var(--text2); }
.cf-req { color: var(--red); }
.cf-field input, .cf-field select, .cf-field textarea {
  padding: 11px 14px;
  background: var(--bg2);
  border-radius: var(--r);
  font-size: 13.5px; color: var(--text);
  font-family: var(--font);
  transition: background var(--t);
}
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { background: var(--surface2); }
.cf-field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.cf-submit {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px;
  background: var(--accent); color: #fff;
  border-radius: var(--r);
  font-size: 15px; font-weight: 800;
  cursor: pointer;
  transition: opacity var(--t);
  letter-spacing: .1px;
}
.cf-submit:hover { opacity: .88; }
.contact-success { display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: var(--green-bg); border-radius: var(--r); }
.contact-success i { font-size: 24px; color: var(--green); margin-top: 2px; flex-shrink: 0; }
.contact-err { display: flex; align-items: center; gap: 9px; padding: 11px 14px; background: var(--red-bg); border-radius: var(--r); font-size: 13px; font-weight: 600; color: var(--red); margin-bottom: 4px; }
.form-hint { font-size: 11px; color: var(--text3); margin-top: 3px; }

/* ══ ADMIN ═══════════════════════════════════════════════════════════════════ */
.mod-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mod-preset-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px;
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text2);
  font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: var(--font);
  transition: color var(--t), background var(--t);
}
.mod-preset-btn i { font-size: 10px; color: var(--green); }
.mod-preset-btn:hover { color: var(--green); background: var(--green-bg); }
.admin-users-table { width: 100%; border-collapse: collapse; }
.admin-users-table th { padding: 10px 14px; font-size: 11px; font-weight: 800; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; text-align: left; background: var(--bg2); border-bottom: 1px solid var(--bg3); }
.admin-users-table td { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--bg3); vertical-align: middle; }
.admin-users-table tr:last-child td { border-bottom: none; }
.admin-users-table tr:hover td { background: var(--bg2); }
.admin-users-table tr.row-banned td { opacity: .45; }
.badge-role { display: inline-flex; padding: 2px 9px; border-radius: 5px; font-size: 11px; font-weight: 700; background: var(--bg3); color: var(--text3); }
.badge-role.admin { background: var(--accent-bg); color: var(--accent); }
.btn-sm { padding: 5px 12px; border-radius: var(--r); font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background var(--t), color var(--t); display: inline-flex; align-items: center; gap: 5px; }
.btn-sm i { font-size: 10px; }
.btn-red   { background: var(--red-bg);   color: var(--red); }
.btn-red:hover   { background: var(--red);   color: #fff; }
.btn-green { background: var(--green-bg); color: var(--green); }
.btn-green:hover { background: var(--green); color: #fff; }
.btn-blue  { background: var(--accent-bg); color: var(--accent); }
.btn-blue:hover  { background: var(--accent);  color: #fff; }
.admin-pager { display: flex; gap: 5px; padding: 14px 0 0; flex-wrap: wrap; }
.admin-pager a { padding: 5px 12px; border-radius: var(--r); font-size: 12px; font-weight: 600; color: var(--text2); background: var(--bg2); transition: background var(--t), color var(--t); text-decoration: none; }
.admin-pager a:hover, .admin-pager a.cur { background: var(--accent); color: #fff; }
.admin-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.admin-modal-overlay.open { display: flex; }
.admin-modal { background: var(--surface); border-radius: var(--r); padding: 24px; max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; }
.admin-modal-title { font-size: 16px; font-weight: 800; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--bg3); display: flex; align-items: center; justify-content: space-between; }
.admin-modal-close { width: 28px; height: 28px; border-radius: var(--r); background: var(--bg3); color: var(--text3); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.admin-modal-close:hover { background: var(--red-bg); color: var(--red); }
.admin-form-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.admin-form-field label { font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .4px; }
.admin-form-field input, .admin-form-field select, .admin-form-field textarea { padding: 9px 12px; background: var(--bg2); border-radius: var(--r); font-size: 13.5px; color: var(--text); font-family: inherit; transition: background var(--t); }
.admin-form-field input:focus, .admin-form-field select:focus, .admin-form-field textarea:focus { background: var(--surface2); }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-form-actions { display: flex; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--bg3); }
.admin-user-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 18px; }
.admin-user-stat { background: var(--bg2); border-radius: var(--r); padding: 10px; text-align: center; }
.admin-user-stat span { display: block; font-size: 18px; font-weight: 900; }
.admin-user-stat label { font-size: 10px; color: var(--text3); font-weight: 500; }
.admin-user-avatar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.admin-user-avatar img { width: 52px; height: 52px; border-radius: var(--r); object-fit: cover; }
.admin-user-avatar .av-ph { width: 52px; height: 52px; border-radius: var(--r); background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; }
.dev-autocomplete { position: absolute; z-index: 100; background: var(--surface); border-radius: var(--r); overflow: hidden; max-height: 200px; overflow-y: auto; left: 0; right: 0; top: 100%; margin-top: 3px; }
.dev-ac-item { padding: 8px 12px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 7px; transition: background .12s; }
.dev-ac-item:hover { background: var(--bg2); }
.dev-upload-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--r); background: var(--bg2); color: var(--text3); font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: color var(--t); }
.dev-upload-btn:hover { color: var(--accent); }
.dev-upload-btn i { font-size: 12px; }
.avatar-upload-area { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ══ ANIMATIONS (только появление, без движений) ════════════════════════════ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.apps-grid .app-card { animation: fadeIn .24s var(--ease) both; }
.apps-grid .app-card:nth-child(1) { animation-delay: .04s; }
.apps-grid .app-card:nth-child(2) { animation-delay: .08s; }
.apps-grid .app-card:nth-child(3) { animation-delay: .12s; }
.apps-grid .app-card:nth-child(4) { animation-delay: .16s; }
.apps-grid .app-card:nth-child(5) { animation-delay: .20s; }
.apps-grid .app-card:nth-child(6) { animation-delay: .24s; }

/* ══ RESPONSIVE ══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .cols-strip { grid-template-columns: repeat(3,1fr); }
  .apps-grid   { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 700px) {
  .nav-inner { flex-wrap: wrap; height: auto; padding: 10px 14px 12px; gap: 8px; position: relative; }
  .nav { height: auto; }
  .nav-logo { flex: 1 1 auto; min-width: 0; order: 1; }
  .nav-burger-check { position: absolute; opacity: 0; pointer-events: none; display: block; }
  .nav-burger { order: 2; width: 42px; height: 38px; border-radius: var(--r); background: var(--bg2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; flex: 0 0 auto; }
  .nav-burger span { width: 18px; height: 2px; border-radius: 10px; background: var(--text); display: block; transition: transform .22s var(--ease), opacity .22s var(--ease), width .22s var(--ease); }
  .nav-burger-check:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger-check:checked + .nav-burger span:nth-child(2) { opacity: 0; width: 0; }
  .nav-burger-check:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-menu { order: 4; display: none; width: 100%; flex: 0 0 100%; padding: 10px; background: var(--surface); border-radius: var(--r); gap: 10px; flex-direction: column; align-items: stretch; overflow: visible; }
  .nav-burger-check:checked ~ .nav-menu { display: flex; }
  .nav-menu .nav-links { display: flex!important; flex-direction: column; width: 100%; gap: 6px; align-items: stretch; }
  .nav-menu .nav-link { width: 100%; min-height: 44px; padding: 0 14px; border-radius: var(--r); background: var(--bg2); font-size: 14px; font-weight: 700; color: var(--text); justify-content: flex-start; gap: 10px; }
  .nav-menu .nav-link.active { background: var(--accent-bg); color: var(--accent); }
  .nav-menu .nav-actions { width: 100%; margin: 0; display: grid; grid-template-columns: 1fr; gap: 7px; align-items: stretch; }
  .nav-menu .nav-user-btn,
  .nav-menu .nav-auth-btn { width: 100%; min-height: 44px; justify-content: center; border-radius: var(--r); font-size: 14px; padding: 0 14px; }
  .nav-menu .nav-user-name { display: inline; font-size: 14px; }
  .nav-search { order: 3; width: 100%; max-width: none; flex: 0 0 100%; }
  .nav-search-wrap input { width: 100%; height: 44px; border-radius: var(--r); font-size: 14px; padding: 0 42px 0 40px; }
  .nav-links { display: none; }
  .search-dropdown { border-radius: var(--r); }
}
@media (max-width: 700px) {
  .hp-hero { padding: 36px 0 32px; margin-bottom: var(--sp); }
  .hp-hero-stats { display: none; }
  .hp-hero-title { font-size: 26px; }
  .hero-strip { padding: 36px 0 32px; }
  .hero-icon-wrap { width: 72px; height: 72px; }
  .hero-android-fa { font-size: 42px; }
  .hero-title { font-size: clamp(22px, 6vw, 32px); }
  .feat-slide { height: auto; min-height: 160px; }
  .feat-slide-content { padding: 16px; gap: 12px; }
  .feat-slide-icon { width: 68px; height: 68px; }
  .feat-slide-title { font-size: 16px; }
  .feat-slide-desc { display: none; }
  .feat-cta-btn { padding: 8px 14px; font-size: 12px; }
  .feat-arrow { display: none; }
  .feat-hero-grid { grid-template-columns: 1fr; }
  .feat-hero-main-inner { min-height: 160px; padding: 18px; }
  .feat-hero-title { font-size: 17px; }
  .top-tabs-sep, .top-tab-cat { display: none; }
  .top-stats { min-width: 60px; }
  .top-rank { width: 28px; font-size: 12px; }
  .top-icon, .top-icon-ph { width: 40px; height: 40px; }
  .seo-cols { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .app-page { padding: 12px 14px 28px!important; }
  .container, .home-wrap, .app-page, .page-body { width: 100%; max-width: 100%; min-width: 0; margin-left: auto; margin-right: auto; }
  .app-page-inner, .app-layout { width: 100%!important; max-width: 100%!important; display: flex!important; flex-direction: column!important; grid-template-columns: none!important; gap: 12px!important; align-items: stretch!important; }
  .app-main-col, .app-main { order: 1!important; width: 100%!important; max-width: 100%!important; min-width: 0!important; }
  .app-side, .app-sidebar, .app-side-left, .app-side-right { position: static!important; width: 100%!important; max-width: 100%!important; }
  .app-side-left, .app-side-right { display: none!important; }
  .app-hero { padding: 16px!important; gap: 14px!important; overflow: hidden; }
  .app-hero-top { display: grid!important; grid-template-columns: 76px minmax(0,1fr)!important; gap: 12px!important; padding: 0!important; }
  .app-hero-actions { display: none!important; }
  .app-hero-bar { width: 100%!important; display: grid!important; grid-template-columns: 1fr!important; gap: 8px!important; padding: 12px 0 0!important; border-top: 1px solid var(--bg3)!important; }
  .hero-votes, .app-hero-votes { width: 100%!important; display: grid!important; grid-template-columns: 1fr 1fr!important; gap: 8px!important; }
  .vote-btn, .bookmark-btn, .hero-dl-btn { width: 100%!important; min-height: 42px!important; justify-content: center!important; margin: 0!important; }
  .ss-strip { padding: 14px!important; overflow: hidden; }
  .ss-strip .ss-slide, .ss-slide { flex: 0 0 calc(86% - 8px)!important; max-width: calc(86% - 8px)!important; }
  .app-hero-screenshots .ss-slide { flex: 0 0 calc(86% - 8px)!important; }
}
@media (max-width: 1060px) {
  .app-layout, .app-page-inner { display: flex!important; flex-direction: column!important; grid-template-columns: none!important; align-items: stretch!important; width: 100%!important; gap: 12px!important; }
  .app-main, .app-main-col { order: 1!important; width: 100%!important; max-width: 100%!important; min-width: 0!important; }
  .app-sidebar, .app-side { position: static!important; width: 100%!important; display: block!important; }
  .app-side-left { order: 2!important; display: grid!important; grid-template-columns: 1fr 1fr!important; gap: 12px!important; }
  .app-side-right { order: 3!important; display: grid!important; grid-template-columns: 1fr!important; gap: 12px!important; }
  .widget { width: 100%!important; margin: 0 0 0!important; border-radius: var(--r)!important; overflow: hidden!important; }
}
@media (max-width: 560px) {
  .cols-strip { grid-template-columns: repeat(2,1fr); }
  .apps-grid { grid-template-columns: 1fr; }
  .achs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .profile-nav { grid-column: 1/-1; }
  .pf-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-nav, .footer-links, .footer-links-col { justify-content: flex-start; flex-wrap: wrap; }
  .footer-right { align-self: flex-start; }
  .cf-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  :root { --sp: 16px; --sp-s: 12px; --sp-l: 28px; }
  .auth-card { padding: 24px 18px; }
  .profile-sidebar { grid-template-columns: 1fr; }
  .app-content, .app-card-detail { padding: 16px!important; }
}
@media (min-width: 701px) and (max-width: 1060px) {
  .app-page { width: 100%; max-width: 760px; }
  .app-page-inner { display: flex!important; flex-direction: column!important; align-items: stretch!important; }
  .app-main-col, .app-main { width: 100%!important; max-width: 100%!important; }
}

/* ══ SIMILAR APPS SECTION ═══════════════════════════════════════════════════ */
.similar-section {
  margin-top: 12px;
}
.similar-head {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.35px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--text);
}
.similar-head::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 4px;
  flex-shrink: 0;
}