/*
Theme Name: snaptiktokvip
Text Domain: snaptiktokvip
Version: 3.6.1
Author: LMH
*/
/* ════════════════════════════════════════════
   GOOGLE FONTS
════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ════════════════════════════════════════════
   VARIABLES
════════════════════════════════════════════ */
:root {
  --bg:          #f5f6fa;
  --surface:     #ffffff;
  --border:      #e8eaf0;
  --text:        #1a1d2e;
  --muted:       #7b8099;
  --accent:      #3b82f6;
  --accent-dark: #2563eb;
  --accent-bg:   #eff6ff;
  --green:       #10b981;
  --green-bg:    #d1fae5;
  --orange:      #f59e0b;
  --orange-bg:   #fef3c7;
  --red:         #ef4444;
  --font:        'DM Sans', -apple-system, 'Segoe UI', sans-serif;
  --r:           14px;
  --r-sm:        10px;
  --r-xs:        6px;
  --shadow:      0 2px 12px rgba(0,0,0,0.07);
  --shadow-lg:   0 8px 24px rgba(59,130,246,0.15);

  --topbar-h:    56px;
  --shell-h-mob: 92px;
  --shell-h-dsk: 110px;
  --adminbar-h:  0px;

  --nav-h:       58px;
  --nav-bottom:  10px;
}

/* ════════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font) !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  -webkit-font-smoothing: antialiased;
  padding-top: calc(var(--shell-h-mob) + var(--adminbar-h)) !important;
  padding-bottom: calc(var(--nav-h) + var(--nav-bottom) + 12px) !important;
  margin: 0 !important;
}

/* ════════════════════════════════════════════
   WORDPRESS ADMIN BAR — FIX HOÀN TOÀN
════════════════════════════════════════════ */
#wpadminbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  display: block !important;
  visibility: visible !important;
  height: 32px !important;
  min-height: 32px !important;
  overflow: hidden !important;
  font-size: 13px !important;
  line-height: 32px !important;
}
#wpadminbar, #wpadminbar * {
  visibility: visible !important;
  list-style: none !important;
  box-sizing: border-box !important;
}
#wpadminbar > #wp-toolbar {
  display: flex !important; flex-direction: row !important; align-items: center !important;
  height: 32px !important; padding: 0 !important; margin: 0 !important; overflow: visible !important; float: none !important;
}
#wpadminbar ul {
  display: flex !important; flex-direction: row !important; align-items: center !important;
  height: 32px !important; padding: 0 !important; margin: 0 !important; float: none !important;
}
#wpadminbar ul > li {
  display: inline-flex !important; align-items: center !important;
  height: 32px !important; padding: 0 !important; margin: 0 !important; float: none !important;
}
#wpadminbar ul > li > a,
#wpadminbar ul > li > span.ab-item {
  display: inline-flex !important; align-items: center !important;
  height: 32px !important; line-height: 32px !important; padding: 0 8px !important;
}
#wpadminbar .ab-sub-wrapper {
  position: absolute !important; top: 32px !important; height: auto !important; display: none !important;
}
#wpadminbar li:hover > .ab-sub-wrapper,
#wpadminbar li.hover > .ab-sub-wrapper { display: block !important; }
#wpadminbar .ab-sub-wrapper ul {
  display: block !important; height: auto !important; flex-direction: column !important;
}
#wpadminbar .ab-sub-wrapper ul > li { display: block !important; height: auto !important; width: 100% !important; }
#wpadminbar .ab-sub-wrapper ul > li > a {
  display: block !important; height: auto !important; line-height: normal !important; padding: 6px 12px !important;
}

.admin-bar .lmh-header-shell { top: 32px !important; }
.admin-bar body {
  --adminbar-h: 32px;
  padding-top: calc(var(--shell-h-mob) + 32px) !important;
}

@media screen and (max-width: 782px) {
  #wpadminbar { height: 46px !important; min-height: 46px !important; line-height: 46px !important; }
  #wpadminbar > #wp-toolbar { height: 46px !important; }
  #wpadminbar ul { height: 46px !important; }
  #wpadminbar ul > li { height: 46px !important; }
  #wpadminbar ul > li > a,
  #wpadminbar ul > li > span.ab-item { height: 46px !important; line-height: 46px !important; }
  #wpadminbar .ab-sub-wrapper { top: 46px !important; }
  .admin-bar .lmh-header-shell { top: 46px !important; }
  .admin-bar body {
    --adminbar-h: 46px;
    padding-top: calc(var(--shell-h-mob) + 46px) !important;
  }
}

/* ════════════════════════════════════════════
   ẨN HOÀN TOÀN CÁC PHẦN TỬ GP
════════════════════════════════════════════ */
.site-header, .main-navigation, .nav-primary, #site-navigation,
.generate-back-to-top, .site-footer, .generate-footer-bar, .top-bar,
.site-description, .sidebar, #secondary, .widget-area,
.nav-below-header, .nav-above-header,
.site-header .search-form, .site-header form[role="search"],
.site-header .search-item, .site-header ul,
.nav-primary ul, .main-navigation ul {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.site, #page, .site-content, #content,
.inside-site-container, .site-container,
.content-area, #primary, .site-main {
  float: none !important; width: 100% !important; max-width: 100% !important;
  padding: 0 !important; margin: 0 !important;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
button { font-family: var(--font); }

body > ul, body > li,
.lmh-page-wrap ~ ul, .lmh-page-wrap ~ li { display: none !important; }

/* ════════════════════════════════════════════
   VISIBILITY HELPERS
════════════════════════════════════════════ */
.lmh-show-mobile  { display: flex !important; }
.lmh-show-desktop { display: none  !important; }

/* ════════════════════════════════════════════
   HEADER SHELL
════════════════════════════════════════════ */
.lmh-header-shell {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 9999 !important;
  width: 100% !important;
  background: var(--surface);
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
  display: block !important;
  visibility: visible !important;
}

/* ════════════════════════════════════════════
   TOP BAR
════════════════════════════════════════════ */
.lmh-topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex !important;
  align-items: center;
  visibility: visible !important;
}
.lmh-topbar__inner {
  width: 100%;
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
}
.lmh-topbar__logo {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0; color: var(--text) !important;
}
.lmh-logo-img  { height: 32px; width: auto; display: block; }
.lmh-logo-text { font-size: 18px; font-weight: 700; letter-spacing: -0.5px; }

/* Desktop search trigger — dạng ô giả, click mở overlay */
.lmh-topbar__search-fake {
  display: none;
  flex: 1; align-items: center; gap: 8px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 0 14px; height: 38px; min-width: 0; max-width: 480px;
  cursor: pointer; text-align: left;
  color: var(--muted); font-size: 14px; font-family: var(--font);
  transition: border-color .18s, box-shadow .18s;
}
.lmh-topbar__search-fake:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.lmh-topbar__search-fake svg { flex-shrink: 0; }
.lmh-topbar__search-fake span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lmh-topbar__actions {
  display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0;
}
.lmh-topbar__btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: background .18s;
}
.lmh-topbar__btn:hover { background: var(--border); }

.lmh-desk-links { align-items: center; gap: 4px; }
.lmh-desk-link {
  font-size: 13px; font-weight: 600; color: var(--muted) !important;
  padding: 6px 12px; border-radius: 8px;
  transition: background .15s, color .15s; white-space: nowrap;
}
.lmh-desk-link:hover,
.lmh-desk-link.active { background: var(--accent-bg); color: var(--accent) !important; }

/* ════════════════════════════════════════════
   SEARCH OVERLAY
════════════════════════════════════════════ */
.lmh-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* Ẩn mặc định */
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.lmh-search-overlay--open {
  opacity: 1;
  pointer-events: auto;
}

/* Backdrop mờ */
.lmh-search-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 35, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Hộp search nổi lên */
.lmh-search-overlay__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 12px;
  margin-top: 80px;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
  transform: translateY(-16px) scale(0.97);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.lmh-search-overlay--open .lmh-search-overlay__box {
  transform: translateY(0) scale(1);
}

/* Row form */
.lmh-search-overlay__form {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 12px 8px 8px;
  border-bottom: 1px solid var(--border);
}
.lmh-search-overlay__back {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border: none; background: none;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: background .15s, color .15s;
}
.lmh-search-overlay__back:hover { background: var(--bg); color: var(--text); }

.lmh-search-overlay__input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: var(--font) !important;
  font-size: 16px !important;
  color: var(--text) !important;
  padding: 0 10px !important;
  height: 44px !important;
  min-width: 0;
}
.lmh-search-overlay__input::placeholder { color: var(--muted); }

.lmh-search-overlay__submit {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border: none;
  background: var(--accent);
  border-radius: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .18s, transform .15s;
}
.lmh-search-overlay__submit:hover { background: var(--accent-dark); transform: scale(1.05); }

/* Suggestions */
.lmh-search-overlay__suggestions {
  padding: 14px 16px 18px;
}
.lmh-search-overlay__hint {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px;
}
.lmh-search-overlay__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.lmh-search-overlay__tag {
  display: inline-flex; align-items: center;
  padding: 5px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 12px; font-weight: 600; color: var(--text) !important;
  cursor: pointer; transition: all .15s;
}
.lmh-search-overlay__tag:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent) !important;
}

/* Admin bar: đẩy overlay box xuống */
.admin-bar .lmh-search-overlay__box { margin-top: 112px; }
@media screen and (max-width: 782px) {
  .admin-bar .lmh-search-overlay__box { margin-top: 126px; }
}

/* ════════════════════════════════════════════
   CATEGORY PILLS
════════════════════════════════════════════ */
.lmh-cats-nav {
  display: flex !important; gap: 7px;
  overflow-x: auto; padding: 8px 14px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  scrollbar-width: none; visibility: visible !important;
}
.lmh-cats-nav::-webkit-scrollbar { display: none; }

.lmh-cat-pill {
  flex-shrink: 0; display: flex; align-items: center; gap: 4px;
  background: var(--bg); color: var(--muted) !important;
  font-size: 12px; font-weight: 600;
  padding: 5px 13px; border-radius: 20px;
  white-space: nowrap; transition: all .18s;
  border: 1.5px solid transparent;
}
.lmh-cat-pill:hover { color: var(--accent) !important; border-color: var(--accent); background: var(--accent-bg); }
.lmh-cat-pill.active { background: var(--accent); color: #fff !important; border-color: var(--accent); }

/* ════════════════════════════════════════════
   PAGE WRAPPER
════════════════════════════════════════════ */
.lmh-page-wrap { background: var(--bg); }
.lmh-main { width: 100%; }

/* ════════════════════════════════════════════
   SECTION
════════════════════════════════════════════ */
.lmh-section { background: var(--surface); margin-bottom: 8px; padding: 14px 14px 10px; }
.lmh-section--featured { padding-bottom: 14px; }
.lmh-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lmh-section-head__title {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px !important; font-weight: 700 !important; color: var(--text) !important;
  margin: 0 !important; padding: 0 !important; border: none !important;
  border-left: 3px solid var(--accent) !important; padding-left: 10px !important; line-height: 1.3 !important;
}
.lmh-section-head__more {
  display: flex; align-items: center; gap: 2px;
  font-size: 12px; font-weight: 600; color: var(--accent) !important;
  white-space: nowrap; transition: opacity .15s;
}
.lmh-section-head__more:hover { opacity: .75; }

/* ════════════════════════════════════════════
   FEATURED SCROLL
════════════════════════════════════════════ */
.lmh-feat-scroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.lmh-feat-scroll::-webkit-scrollbar { display: none; }
.lmh-feat-card { flex-shrink: 0; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--text) !important; }
.lmh-feat-card__icon-wrap { position: relative; width: 64px; height: 64px; }
.lmh-feat-card__icon { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; box-shadow: 0 3px 10px rgba(0,0,0,0.13); background: var(--bg); transition: transform .18s; }
.lmh-feat-card:hover .lmh-feat-card__icon { transform: translateY(-2px) scale(1.04); }
.lmh-feat-card__mod-dot { position: absolute; bottom: -4px; right: -4px; background: var(--green); color: #fff; font-size: 8px; font-weight: 800; padding: 1px 5px; border-radius: 6px; letter-spacing: .3px; border: 1.5px solid var(--surface); }
.lmh-feat-card__name { font-size: 11px; font-weight: 500; color: var(--text) !important; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 1.3; }
.lmh-feat-card__ver { font-size: 10px; color: var(--muted); display: block; margin-top: -2px; }

/* ════════════════════════════════════════════
   APP LIST ROWS
════════════════════════════════════════════ */
.lmh-app-list { display: flex; flex-direction: column; }
.lmh-app-row { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.lmh-app-row:last-child { border-bottom: none; }
.lmh-app-row__rank { flex-shrink: 0; width: 20px; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }
.lmh-app-row__rank.top3 { color: var(--accent); }
.lmh-app-row__thumb-link { flex-shrink: 0; }
.lmh-app-row__thumb { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: transform .18s; }
.lmh-app-row:hover .lmh-app-row__thumb { transform: scale(1.04); }
.lmh-app-row__info { flex: 1; min-width: 0; }
.lmh-app-row__name { display: block; font-size: 13px; font-weight: 600; color: var(--text) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; transition: color .15s; }
.lmh-app-row__name:hover { color: var(--accent) !important; }
.lmh-app-row__meta { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; margin-bottom: 5px; }
.lmh-ver  { background: var(--accent-bg); color: var(--accent); font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 10px; flex-shrink: 0; }
.lmh-dot  { color: var(--border); }
.lmh-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.lmh-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 8px; }
.lmh-badge--apk  { background: var(--accent-bg); color: var(--accent); }
.lmh-badge--mod  { background: var(--green-bg);  color: var(--green); }
.lmh-badge--soon { background: var(--orange-bg); color: var(--orange); }
.lmh-btn-get { flex-shrink: 0; background: var(--accent-bg); color: var(--accent) !important; font-size: 12px; font-weight: 700; padding: 7px 16px; border-radius: 20px; border: 1.5px solid var(--accent); white-space: nowrap; transition: all .18s; }
.lmh-btn-get:hover { background: var(--accent); color: #fff !important; }

/* ════════════════════════════════════════════
   GRID
════════════════════════════════════════════ */
.lmh-grid { display: grid; gap: 10px; }
.lmh-grid--3 { grid-template-columns: repeat(3,1fr); }
.lmh-grid--2 { grid-template-columns: repeat(2,1fr); }
.lmh-grid-card { background: var(--bg); border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); color: var(--text) !important; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.lmh-grid-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.lmh-grid-card__cover { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--border); }
.lmh-grid-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.lmh-grid-card:hover .lmh-grid-card__cover img { transform: scale(1.05); }
.lmh-grid-card__body { padding: 8px 9px 10px; display: flex; align-items: center; gap: 7px; }
.lmh-grid-card__icon { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: var(--border); }
.lmh-grid-card__name { font-size: 11px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lmh-grid-card__ver  { font-size: 10px; color: var(--muted); margin-top: 2px; }

/* ════════════════════════════════════════════
   SEE MORE
════════════════════════════════════════════ */
.lmh-btn-more { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; margin-top: 12px; margin-bottom: 4px; padding: 10px; background: var(--bg); color: var(--accent) !important; font-size: 13px; font-weight: 600; border-radius: var(--r-sm); border: 1.5px solid var(--border); transition: all .18s; }
.lmh-btn-more:hover { border-color: var(--accent); background: var(--accent-bg); }

/* ════════════════════════════════════════════
   CATEGORY EXPLORE
════════════════════════════════════════════ */
.lmh-cat-explore { background: var(--surface); margin-bottom: 8px; padding: 16px 14px 20px; }
.lmh-cat-explore__grid { display: flex; flex-direction: column; gap: 16px; }
.lmh-cat-explore__parent { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--text) !important; margin-bottom: 8px; padding: 4px 14px; background: var(--accent-bg); border-radius: 20px; border: 1px solid rgba(59,130,246,0.2); transition: all .15s; }
.lmh-cat-explore__parent:hover { background: var(--accent); color: #fff !important; }
.lmh-cat-explore__count { font-size: 10px; opacity: .7; }
.lmh-cat-explore__children { display: flex; flex-wrap: wrap; gap: 6px; }
.lmh-cat-explore__child { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--muted) !important; padding: 4px 11px; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; transition: all .15s; }
.lmh-cat-explore__child:hover { color: var(--accent) !important; border-color: var(--accent); background: var(--accent-bg); }

/* ════════════════════════════════════════════
   BOTTOM NAV
════════════════════════════════════════════ */
.lmh-bottom-nav {
  position: fixed;
  bottom: var(--nav-bottom);
  left: 50%; transform: translateX(-50%);
  z-index: 300;
  height: var(--nav-h);
  width: calc(100% - 24px);
  max-width: 500px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 30px;
  display: flex !important;
  align-items: stretch;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 1px 6px rgba(0,0,0,0.06);
  visibility: visible !important;
}
.lmh-bnav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  color: var(--muted) !important;
  font-size: 10px; font-weight: 600;
  background: none; border: none; cursor: pointer;
  transition: color .18s, background .15s;
  position: relative; padding: 0; text-decoration: none !important;
}
.lmh-bnav-item:first-child { border-radius: 30px 0 0 30px; }
.lmh-bnav-item:last-child  { border-radius: 0 30px 30px 0; }
.lmh-bnav-item svg { width: 21px; height: 21px; stroke-width: 1.8; transition: transform .2s; }
.lmh-bnav-item:hover { background: rgba(59,130,246,0.05); color: var(--accent) !important; }
.lmh-bnav-item:hover svg { transform: translateY(-1px); }
.lmh-bnav-item.active { color: var(--accent) !important; }
.lmh-bnav-item.active::after {
  content: ''; position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; background: var(--accent); border-radius: 50%;
}

/* ════════════════════════════════════════════
   SLIDE-UP MENU PANEL
════════════════════════════════════════════ */
.lmh-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 399; backdrop-filter: blur(2px); }
.lmh-overlay.show { display: block; }
.lmh-menu-panel { position: fixed; bottom: 0; left: 0; right: 0; z-index: 400; background: var(--surface); border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform .3s cubic-bezier(.4,0,.2,1); max-height: 75vh; overflow-y: auto; box-shadow: 0 -8px 40px rgba(0,0,0,0.15); }
.lmh-menu-panel.open { transform: translateY(0); }
.lmh-menu-panel__inner { padding: 0 0 calc(var(--nav-h) + var(--nav-bottom) + 20px); }
.lmh-menu-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 700; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.lmh-menu-panel__close { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); }
.lmh-menu-panel__close:hover { background: var(--border); }
.lmh-panel-menu { list-style: none; }
.lmh-panel-menu li a { display: block; padding: 11px 18px; font-size: 14px; font-weight: 500; color: var(--text) !important; border-bottom: 1px solid var(--border); }
.lmh-panel-menu li:last-child a { border-bottom: none; }
.lmh-panel-menu li a:hover { background: var(--bg); }

/* ════════════════════════════════════════════
   MOBILE <= 360px
════════════════════════════════════════════ */
@media (max-width: 360px) {
  .lmh-grid--3 { grid-template-columns: repeat(2,1fr); }
  .lmh-feat-card { width: 68px; }
  .lmh-feat-card__icon, .lmh-feat-card__icon-wrap { width: 58px; height: 58px; }
  .lmh-bottom-nav { width: calc(100% - 16px); height: 54px; border-radius: 26px; bottom: 8px; }
  .lmh-bnav-item { font-size: 9px; }
  .lmh-bnav-item svg { width: 18px; height: 18px; }
}

/* ════════════════════════════════════════════
   TABLET 480-767px
════════════════════════════════════════════ */
@media (min-width: 480px) and (max-width: 767px) {
  .lmh-grid--3 { grid-template-columns: repeat(3,1fr); }
  .lmh-feat-card { width: 82px; }
  .lmh-feat-card__icon, .lmh-feat-card__icon-wrap { width: 70px; height: 70px; }
}

/* ════════════════════════════════════════════
   DESKTOP >= 768px
════════════════════════════════════════════ */
@media (min-width: 768px) {

  body {
    padding-top: calc(var(--shell-h-dsk) + var(--adminbar-h)) !important;
    padding-bottom: calc(var(--nav-h) + var(--nav-bottom) + 12px) !important;
  }
  .admin-bar body {
    padding-top: calc(var(--shell-h-dsk) + 32px) !important;
  }

  .lmh-show-mobile  { display: none  !important; }
  .lmh-show-desktop { display: flex  !important; }

  .lmh-header-shell { display: block !important; }
  .lmh-topbar { height: 64px; }
  .lmh-topbar__inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; gap: 20px; }

  /* Hiện ô search fake trên desktop */
  .lmh-topbar__search-fake {
    display: flex !important;
    max-width: 480px;
  }

  .lmh-cats-nav {
    max-width: 1200px; margin: 0 auto;
    padding: 10px 32px; height: 46px; align-items: center;
  }

  .lmh-bottom-nav { display: flex !important; max-width: 1100px; }

  /* Menu panel ẩn trên desktop */
  .lmh-menu-panel, .lmh-overlay { display: none !important; }

  .lmh-page-wrap {
    max-width: 1200px; margin: 0 auto;
    display: flex; gap: 20px; padding: 16px 32px;
  }
  .lmh-main { flex: 1; min-width: 0; }

  .lmh-grid--3 { grid-template-columns: repeat(3,1fr); }
  .lmh-grid--2 { grid-template-columns: repeat(4,1fr); }
  .lmh-app-list--3col { display: grid; grid-template-columns: repeat(3,1fr); gap: 0 20px; }

  .lmh-feat-card { width: 88px; }
  .lmh-feat-card__icon, .lmh-feat-card__icon-wrap { width: 76px; height: 76px; }

  .lmh-section { padding: 18px 18px 12px; margin-bottom: 12px; border-radius: 12px; }
  .lmh-cat-explore { border-radius: 12px; }
  .lmh-cat-explore__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

  /* Search overlay: căn giữa tốt hơn trên desktop */
  .lmh-search-overlay__box { margin-top: 100px; }
}

/* ════════════════════════════════════════════
   WIDE DESKTOP >= 1100px
════════════════════════════════════════════ */
@media (min-width: 1100px) {
  .lmh-topbar__search-fake { max-width: 600px; }
}

/* === RESET & BASE === */
.sp-wrap * { box-sizing: border-box; }
.sp-wrap { background: var(--bg, #f4f6f9); display: block !important; }

/* === HERO === */
.sp-hero {
    position: relative;
    display: block !important;
    overflow: hidden;
    padding: 20px 16px 0;
    background: linear-gradient(160deg, #c8f0d8 0%, #d6eef8 50%, #e8f4fb 100%) !important;
}

/* Breadcrumb */
.sp-breadcrumb {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #555;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.sp-breadcrumb a { color: #444 !important; text-decoration: none; }
.sp-breadcrumb a:hover { color: #1976d2 !important; }
.sp-breadcrumb svg { width: 12px; height: 12px; opacity: .5; flex-shrink: 0; }

/* App header row — ĐÂY LÀ PHẦN QUAN TRỌNG */
.sp-header-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px;
    margin-bottom: 20px;
    width: 100%;
}

.sp-logo-wrap {
    flex-shrink: 0 !important;
    display: block !important;
    width: 96px !important;
    height: 96px !important;
}

.sp-logo {
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    min-height: 96px !important;
    border-radius: 22px !important;
    object-fit: cover !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18) !important;
    background: #dde !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Placeholder khi logo lỗi */
.sp-logo-placeholder {
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    min-height: 96px !important;
    border-radius: 22px !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18) !important;
    flex-shrink: 0 !important;
}

.sp-header-info {
    flex: 1 !important;
    min-width: 0 !important;
    padding-top: 2px !important;
    display: block !important;
}

.sp-app-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1a1d2e !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1.3 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    word-break: break-word !important;
}

.sp-publisher {
    font-size: 13px !important;
    color: #1976d2 !important;
    font-weight: 600 !important;
    display: block !important;
    margin-bottom: 8px !important;
    text-decoration: none !important;
}
.sp-publisher:hover { opacity: .8 !important; }

.sp-mod-badge {
    display: inline-block !important;
    background: #10b981 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    letter-spacing: .3px !important;
}

/* Stats bar */
.sp-stats {
    display: flex !important;
    align-items: stretch;
    background: #fff !important;
    border-top: 1px solid rgba(0,0,0,0.07);
    overflow-x: auto;
    scrollbar-width: none;
}
.sp-stats::-webkit-scrollbar { display: none; }
.sp-stat {
    flex: 1;
    min-width: 68px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    border-right: 1px solid #e8eaf0;
    text-align: center;
}
.sp-stat:last-child { border-right: none; }
.sp-stat__val {
    font-size: 14px;
    font-weight: 700;
    color: #1a1d2e;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}
.sp-stat__val .star-icon { color: #f5a623; font-size: 13px; }
.sp-stat__lbl { font-size: 10px; color: #888; margin-top: 2px; white-space: nowrap; }

/* === SECTION CHUNG === */
.sp-section {
    background: #fff;
    margin-bottom: 8px;
    padding: 16px 14px;
    display: block !important;
}
.sp-section-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1a1d2e !important;
    margin: 0 0 12px !important;
    padding: 0 0 0 10px !important;
    border: none !important;
    border-left: 3px solid #1976d2 !important;
    line-height: 1.4 !important;
    display: block !important;
}

/* === SCREENSHOTS === */
.sp-screenshots {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.sp-screenshots::-webkit-scrollbar { display: none; }
.sp-screenshot {
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f4f6f9;
    border: 1px solid #e8eaf0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.sp-screenshot img {
    display: block;
    height: 200px;
    width: auto;
    max-width: 360px;
    object-fit: cover;
}

/* === INFO TABLE === */
.sp-info-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sp-info-table tr { border-bottom: 1px solid #f0f2f5; }
.sp-info-table tr:last-child { border-bottom: none; }
.sp-info-table th {
    width: 38%;
    padding: 9px 6px 9px 9px;
    font-weight: 600;
    color: #888;
    text-align: left;
    vertical-align: top;
}
.sp-info-table td {
    padding: 9px 9px;
    color: #1a1d2e;
    vertical-align: top;
    word-break: break-word;
text-align: right; }
.sp-info-table td a { color: #1976d2 !important; text-decoration: none; }
.sp-price-free { color: #10b981; font-weight: 700; }
.sp-price-orig { text-decoration: line-through; color: #888; margin-left: 4px; }

/* === RATING STARS === */
.lmh-stars { display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.lmh-star { font-size: 22px; color: #ccc; cursor: pointer; transition: color .15s, transform .1s; line-height: 1; }
.lmh-star.on  { color: #f5a623; }
.lmh-star.hover { color: #f5a623; transform: scale(1.25); }
.lmh-stars[data-voted="1"] .lmh-star { cursor: default; pointer-events: none; }
.lmh-info { font-size: 12px; color: #888; margin-left: 4px; white-space: nowrap; }
.lmh-avg  { font-weight: 700; color: #444; }

/* === AUTHOR META === */
.sp-author-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #888;
    flex-wrap: wrap;
	float: right;
    padding-right: 9px !important;
}
.sp-author-meta a { color: #1976d2 !important; font-weight: 600; text-decoration: none; float: right;
    padding-right: 9px !important;}

/* === CONTENT === */
.sp-content { font-size: 14px; line-height: 1.7; color: #333; }
.sp-content p { margin-bottom: 10px; }
.sp-content h2, .sp-content h3 { font-size: 15px; font-weight: 700; margin: 14px 0 8px; }
.sp-read-more-wrap { position: relative; }
.sp-read-more-wrap.collapsed .sp-content {
    max-height: 180px;
    overflow: hidden;
}
.sp-read-more-wrap.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}
.sp-read-more-btn {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #1976d2 !important;
    padding: 10px 0 2px;
    cursor: pointer;
    background: none;
    border: none;
    transition: opacity .15s;
}
.sp-read-more-btn:hover { opacity: .75; }

/* === TAGS === */
.sp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 14px;
    background: #fff;
    margin-bottom: 8px;
}
.sp-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 16px;
    background: #f4f6f9;
    border: 1.5px solid #e8eaf0;
    color: #888 !important;
    text-decoration: none;
    transition: all .15s;
}
.sp-tag:hover { color: #1976d2 !important; border-color: #1976d2; background: #e8f0fb; }

/* === DOWNLOAD BLOCK === */
.modlmhdown-container { max-width: 680px; margin: 0 auto; padding: 10px 0 20px; text-align: center; }
.modlmhdown-big-btn {
    display: inline-block;
    background: #ff6200;
    color: #fff !important;
    font-size: 20px;
    font-weight: 800;
    padding: 16px 56px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255,98,0,.3);
    transition: all .3s;
    margin: 20px 0;
    letter-spacing: .5px;
    text-decoration: none;
}
.modlmhdown-big-btn:hover { background: #e55a00; transform: translateY(-3px); box-shadow: 0 12px 25px rgba(255,98,0,.4); }
.modlmhdown-download-section { margin-top: 16px; }
.modlmhdown-version-card {
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 14px;
    padding: 20px;
    margin: 14px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    text-align: center;
}
.modlmhdown-info { margin-bottom: 14px; font-size: 14px; color: #555; }
.modlmhdown-type { background: #e0f7fa; padding: 4px 10px; border-radius: 5px; margin-right: 10px; font-size: 13px; }
.modlmhdown-size { font-weight: 700; }
.modlmhdown-version-btn {
    color: #fff;
    border: none;
    padding: 12px 36px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    margin: 8px 8px;
    transition: all .3s;
    min-width: 160px;
}
.modlmhdown-version-btn.main-btn   { background: #ff6200; }
.modlmhdown-version-btn.main-btn:hover   { background: #e55a00; }
.modlmhdown-version-btn.backup-btn { background: #1976d2; }
.modlmhdown-version-btn.backup-btn:hover { background: #1565c0; }
.modlmhdown-version-btn:disabled { background: #ccc !important; cursor: not-allowed; }
.modlmhdown-countdown { font-size: 22px; font-weight: 700; color: #d32f2f; margin: 16px 0; min-height: 28px; }
.modlmhdown-status   { font-size: 13px; color: #777; }
.modlmhdown-modinfo  { font-size: 13px; color: #555; margin-top: 14px; padding-top: 12px; border-top: 1px solid #eee; }
.modlmhdown-message  { margin-top: 30px; color: #2e7d32; font-weight: 700; font-size: 15px; }

/* === RECOMMENDED === */
.sp-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sp-section-head__title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1a1d2e !important;
    margin: 0 !important;
    padding: 0 0 0 10px !important;
    border: none !important;
    border-left: 3px solid #1976d2 !important;
}
.sp-section-head__more { font-size: 12px; font-weight: 600; color: #1976d2 !important; text-decoration: none; }
.recommended-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.recommended-item { border: 1px solid #e8eaf0; border-radius: 10px; background: #fff; transition: box-shadow .2s; overflow: hidden; }
.recommended-item:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.09); }

/* === COMMENT === */
.sp-comment-wrap { background: #fff; padding: 20px 14px; margin-top: 8px; }
.sp-comment-title { font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 16px; text-transform: uppercase; color: #1a1d2e; }

/* === DESKTOP === */
@media (min-width: 768px) {
    .sp-hero { padding: 24px 24px 0; }
    .sp-logo-wrap { width: 110px !important; height: 110px !important; }
    .sp-logo { width: 110px !important; height: 110px !important; min-width: 110px !important; min-height: 110px !important; border-radius: 24px !important; }
    .sp-logo-placeholder { width: 110px !important; height: 110px !important; min-width: 110px !important; min-height: 110px !important; border-radius: 24px !important; }
    .sp-app-title { font-size: 20px !important; }
    .sp-section { padding: 20px; border-radius: 12px; }
    .sp-stat { padding: 14px 10px; }
    .sp-stat__val { font-size: 15px; }
    .sp-stat__lbl { font-size: 11px; }
    .sp-tags { padding: 16px 20px; border-radius: 12px; }
    .sp-comment-wrap { border-radius: 12px; }
    .recommended-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) { .recommended-grid { grid-template-columns: repeat(2,1fr); gap: 8px; } }
@media (max-width: 380px) { .recommended-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════
   COMMENT SECTION  –  APKMODY UI
════════════════════════════════ */
#lmh-comments {
    margin-top: 28px;
    font-family: inherit;
}

/* ── Section heading ── */
.lmh-comments-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--heading, #111);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border, #eee);
}
.lmh-comments-title svg { color: #4caf50; flex-shrink: 0; }
.lmh-comments-title .lmh-count {
    font-weight: 400;
    color: var(--muted, #888);
    font-size: 14px;
}

/* ── Comment list ── */
.lmh-comment-list,
.lmh-comment-list ol,
.lmh-comment-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Each comment item */
.lmh-comment-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border, #f0f0f0);
}
.lmh-comment-item:last-child { border-bottom: none; }

/* Row: avatar + body */
.lmh-comment-inner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* Avatar */
.lmh-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #e8eaf0;
}
.lmh-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* Body */
.lmh-comment-body { flex: 1; min-width: 0; }

.lmh-comment-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.lmh-comment-author {
    font-weight: 700;
    font-size: 14px;
    color: var(--heading, #111);
}
.lmh-comment-time {
    font-size: 12px;
    color: var(--muted, #999);
}

.lmh-comment-text {
    font-size: 14px;
    color: var(--body, #333);
    line-height: 1.6;
    margin: 0;
    word-break: break-word;
}

/* Children / replies */
.lmh-comment-children {
    margin-top: 8px;
    margin-left: 52px;
    border-left: 2px solid var(--border, #eee);
    padding-left: 14px;
}
.lmh-comment-children .lmh-comment-item {
    padding: 10px 0;
    border-bottom: none;
}
.lmh-comment-children .lmh-avatar {
    width: 34px;
    height: 34px;
}

/* ── Comment form ── */
.lmh-comment-form-wrap {
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 18px;
    margin-top: 20px;
    background: var(--card-bg, #fff);
}

.lmh-form-textarea {
    width: 100%;
    min-height: 100px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--body, #333);
    background: var(--input-bg, #fafafa);
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color .2s;
}
.lmh-form-textarea:focus { border-color: #4caf50; background: #fff; }

.lmh-form-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.lmh-form-row input {
    flex: 1;
    min-width: 140px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--body, #333);
    background: var(--input-bg, #fafafa);
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color .2s;
}
.lmh-form-row input:focus { border-color: #4caf50; background: #fff; }

.lmh-form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}
.lmh-btn-send {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    font-family: inherit;
}
.lmh-btn-send:hover { background: #43a047; }
.lmh-btn-send:active { transform: scale(.97); }
.lmh-btn-send svg { flex-shrink: 0; }

/* hidden honeypot */
.lmh-hp { display: none !important; }

/* no-comments note */
.lmh-no-comments {
    font-size: 13px;
    color: var(--muted, #999);
    padding: 10px 0;
}
