/*
Theme Name: TK MODS Pro
Theme URI: https://www.tkmods.com/
Author: TK MODS
Author URI: https://www.tkmods.com/
Description: Tema ultra rápido e otimizado para SEO estilo Play Store para Apps e Jogos MOD APK (Modo Claro/Escuro, Favoritos no Navegador, Selo Atualizado e Schema SoftwareApplication).
Version: 2.6.0
License: GPL v2 or later
Text Domain: tkmods-pro
*/

:root {
  --primary: #01875f;
  --primary-hover: #016b4b;
  --primary-light: rgba(1, 135, 95, 0.12);
  --accent-orange: #ff6d00;
  --danger: #ef4444;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-input: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-pill: 9999px;
  --header-height: 68px;
}

html[data-theme="dark"] {
  --primary: #00e676;
  --primary-hover: #00c853;
  --primary-light: rgba(0, 230, 118, 0.15);
  --bg-body: #0b0f19;
  --bg-card: #151c2c;
  --bg-input: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #263147;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.35);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
  padding-top: calc(var(--header-height) + 16px);
}

body.admin-bar #main-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar #main-header {
    top: 46px;
  }
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

img, video, table {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

iframe {
  max-width: 100%;
  border: 0;
}

ul, ol {
  list-style: none;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 14px;
}

/* Cabeçalho Fixo */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  height: var(--header-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 10px;
  width: 100%;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 1;
}

.site-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-title a {
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.custom-logo-link img {
  max-height: 38px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.nav-links a i {
  color: var(--primary);
  font-size: 15px;
}
.nav-links a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.search-box {
  flex: 1;
  max-width: 340px;
  position: relative;
  min-width: 0;
}
.search-box form {
  display: flex;
  align-items: center;
  width: 100%;
}
.search-input {
  width: 100%;
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid transparent;
  padding: 10px 16px 10px 38px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}
.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.action-btn {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.fav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
}

/* Grid Principal */
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  width: 100%;
}

main#primary-content, aside#sidebar {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.section-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  min-width: 0;
  flex: 1;
}
.section-title span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.section-title i {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: #0b0f19;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
html[data-theme="light"] .section-title i {
  color: #ffffff;
}

.view-all-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.view-all-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* Destaques da Semana */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  width: 100%;
}
.trending-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.trending-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.trending-card .app-icon {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  object-fit: cover;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.trending-card .app-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  width: 100%;
}

/* Grid de Cards */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.app-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  transition: all 0.2s ease;
  min-width: 0;
  width: 100%;
}
.app-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.app-card-thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-card);
}

.app-card-info {
  flex: 1;
  min-width: 0;
}

.app-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-bottom: 3px;
}
.app-card-title:hover {
  color: var(--primary);
}

.app-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.app-card-meta i.fa-star {
  color: #f59e0b;
}
.app-card-meta .updated-tag {
  color: var(--primary);
  font-weight: 700;
}

.app-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-download-sm {
  background: var(--primary);
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
html[data-theme="dark"] .btn-download-sm {
  color: #0b0f19 !important;
}
.btn-download-sm:hover {
  background: var(--primary-hover);
  transform: scale(1.03);
}

.fav-toggle-btn {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.fav-toggle-btn:hover {
  color: var(--danger);
  border-color: var(--danger);
}
.fav-toggle-btn.is-fav {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border-color: var(--danger);
}

/* Página Interna do Post (Single) */
.single-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  width: 100%;
  max-width: 100%;
}

.breadcrumbs {
  padding: 12px 16px;
  background: var(--bg-input);
  border-bottom: 1px solid var(--border-color);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumbs a {
  color: var(--text-main);
  font-weight: 600;
}
.breadcrumbs a:hover {
  color: var(--primary);
}

.app-hero-header {
  padding: 20px 16px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-bottom: 1px solid var(--border-color);
}

.app-hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.app-hero-details {
  flex: 1;
  min-width: 0;
  width: 100%;
}

h1.post-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 10px;
  word-break: break-word;
}

.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.badge-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge-pill.verified {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}
.badge-pill.updated-badge {
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
html[data-theme="dark"] .badge-pill.updated-badge {
  color: #0b0f19;
}

.share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.share-btn {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.share-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}
.share-btn.wa {
  background: #25D366;
}
.share-btn.fav-post-btn {
  background: var(--bg-input);
  color: var(--text-main) !important;
  border: 1px solid var(--border-color);
  cursor: pointer;
}
.share-btn.fav-post-btn.is-fav {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger) !important;
  border-color: var(--danger);
}

/* Corpo do Post */
.post-body {
  padding: 20px 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-main);
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.post-body h2, .post-body h3, .post-body h4 {
  margin: 22px 0 10px;
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.3;
}
.post-body p {
  margin-bottom: 14px;
}
.post-body ul, .post-body ol {
  margin: 12px 0 16px 20px;
}
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 6px; }
.post-body img {
  border-radius: var(--radius-md);
  margin: 10px 0;
  max-width: 100% !important;
  height: auto !important;
}

/* Botões de Download Compatíveis */
.btn, .wp-block-buttons {
  list-style: none !important;
  text-align: center;
  padding: 0 !important;
  margin: 20px auto !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.btn li { list-style: none !important; margin: 0; }
.gplay, .download, .wp-block-button__link {
  padding: 12px 24px !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-pill) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  background-color: var(--primary);
}
.download { background-color: var(--accent-orange); }
.gplay:hover, .download:hover, .wp-block-button__link:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* Aba de Comentários Nativa WordPress */
#comments {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.comments-title, .comment-reply-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}
.comments-title i {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
html[data-theme="dark"] .comments-title i {
  color: #0b0f19;
}
.comment-list {
  list-style: none;
  margin: 0 0 20px 0;
}
.comment-list .comment {
  margin-bottom: 14px;
}
.comment-body {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  position: relative;
}
.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.comment-author img.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--primary-light);
}
.comment-author .fn {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  font-style: normal;
}
.comment-metadata a {
  font-size: 11px;
  color: var(--text-muted);
}
.comment-content p {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 6px;
}
.reply a {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-top: 6px;
}
.comment-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 12px;
}
.comment-form textarea:focus,
.comment-form input:focus {
  outline: none;
  border-color: var(--primary);
}
.comment-form .submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
html[data-theme="dark"] .comment-form .submit {
  color: #0b0f19;
}
.comment-form .submit:hover {
  background: var(--primary-hover);
}

/* Sidebar */
#sidebar .widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  overflow: visible;
}
#sidebar .widget-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-popular-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.sidebar-popular-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sidebar-popular-list img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar-popular-list .pop-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-popular-list .pop-title:hover {
  color: var(--primary);
}

.tag-cloud-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-cloud-pills a {
  background: var(--bg-input);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  display: inline-block;
}
.tag-cloud-pills a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Gavetas Laterais */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 330px;
  max-width: 88vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-md);
}
.side-drawer.open {
  transform: translateX(0);
}
.drawer-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-header h3 {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.drawer-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.fav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}
.fav-item img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.fav-item-info {
  flex: 1;
  min-width: 0;
}
.fav-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fav-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  font-size: 14px;
}
.fav-remove-btn:hover {
  color: var(--danger);
}

.mobile-menu-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text-main);
  font-weight: 600;
  border-radius: var(--radius-md);
  margin-bottom: 4px;
}
.mobile-menu-list li a i {
  width: 30px;
  height: 30px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-list li a:hover {
  background: var(--bg-input);
}

/* Paginação */
.pagination-wrap .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.pagination-wrap .page-numbers {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
html[data-theme="dark"] .pagination-wrap .page-numbers.current {
  color: #0b0f19;
}

/* Rodapé */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 28px 14px;
  margin-top: 32px;
  text-align: center;
  width: 100%;
}
.footerlinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.footerlinks a {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
}
.footerlinks a:hover {
  color: var(--primary);
}
.site-info {
  font-size: 13px;
  color: var(--text-muted);
}

.scroll-top-btn {
  position: fixed;
  bottom: 20px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 999;
}
.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

/* Responsividade */
@media screen and (max-width: 992px) {
  .main-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-links {
    display: none;
  }
}

@media screen and (max-width: 640px) {
  .container { padding: 0 12px; }
  .section-box { padding: 14px 12px; }
  .section-title { font-size: 15px; gap: 8px; }
  .section-title i { width: 28px; height: 28px; font-size: 13px; }
  .view-all-btn { font-size: 11px; padding: 5px 10px; }
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .trending-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .search-box { display: none; }
  .app-hero-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .app-badges, .share-row {
    justify-content: center;
  }
}
