/*
Theme Name: PluginThemeBR
Theme URI: https://pluginthemebr.club
Author: PluginThemeBR
Description: Tema premium dark para loja de plugins e temas WordPress, fórum BBPress e gamificação GamiPress
Version: 1.7.1
License: GPL v2
Text Domain: pluginthemebr
*/

/* ═══════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════ */
:root {
  /* Cores base */
  --bg:       #050816;
  --bg2:      #0b1028;
  --bg3:      #111932;
  --bg4:      #1a2340;
  --bg5:      #202b4a;
  --border:   rgba(120,140,255,.24);
  --border2:  rgba(120,140,255,.40);
  --border3:  rgba(120,140,255,.60);

  /* Texto */
  --text:     #ffffff;
  --text2:    #d7e3f8;
  --text3:    #b4c4e2;

  /* Accent palette */
  --accent:   #6366f1;
  --accent-bright: #8b9bff;
  --accent2:  #8b5cf6;
  --cyan:     #00e5ff;
  --green:    #00e676;
  --pink:     #f059c8;
  --gold:     #ffdd00;
  --red:      #ff5252;
  --orange:   #ff9100;

  /* Gradientes */
  --grad-main:   linear-gradient(135deg,#6366f1,#8b5cf6,#a855f7);
  --grad-cyan:   linear-gradient(135deg,#0ea5e9,#06b6d4,#00e5ff);
  --grad-green:  linear-gradient(135deg,#10b981,#00e676);
  --grad-gold:   linear-gradient(135deg,#f59e0b,#ffd740);
  --grad-pink:   linear-gradient(135deg,#ec4899,#f059c8);

  /* Sombras */
  --shadow-sm: 0 4px 16px rgba(0,0,0,.3);
  --shadow:    0 8px 32px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
  --glow:      0 0 24px rgba(99,102,241,.4);

  /* Espaçamentos */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Layout */
  --sidebar-w: 320px;
  --max-w:     1400px;
  --header-h:  64px;
}

/* ═══════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, select {
  font-family: inherit;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}

/* ═══════════════════════════════════════════════════════
   BACKGROUNDS & EFFECTS
═══════════════════════════════════════════════════════ */
.site-bg-blobs {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(130px); opacity: .14;
}
.blob-1 { width:700px;height:700px;background:#6366f1;top:-300px;left:-200px; }
.blob-2 { width:600px;height:600px;background:#a855f7;bottom:-150px;right:-150px; }
.blob-3 { width:450px;height:450px;background:#0ea5e9;top:45%;left:45%;transform:translate(-50%,-50%); }

/* Noise overlay */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
  pointer-events: none; opacity: .5;
}

/* ═══════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════ */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(28px,3.5vw,52px); }
h2 { font-size: clamp(22px,2.5vw,36px); }
h3 { font-size: clamp(16px,1.8vw,22px); }
h4 { font-size: 16px; }
p  { color: var(--text2); line-height: 1.7; }

.gradient-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-text-cyan {
  background: var(--grad-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ═══════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  background: rgba(5,8,22,.88);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 32px; gap: 20px;
}

.site-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; text-decoration: none;
}
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad-main);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 20px rgba(99,102,241,.55), var(--shadow-sm);
}
.logo-name {
  font-family: 'Syne', sans-serif;
  font-size: 21px; font-weight: 800;
  color: var(--text);
}
.logo-name span { color: var(--cyan); }

/* Search */
.header-search {
  flex: 1; max-width: 380px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 9px 16px 9px 42px;
  border-radius: 12px;
  font-size: 13px;
  background: var(--bg3);
  border: 1px solid var(--border);
  transition: all .2s;
}
.header-search input:focus { border-color: var(--accent); }
.header-search .icon-search {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text3); font-size: 14px;
  pointer-events: none;
}

/* Nav */
.header-nav {
  display: flex; align-items: center;
  gap: 2px; margin-left: auto;
}
.nav-link {
  padding: 7px 13px;
  font-size: 13px; font-weight: 500;
  color: var(--text2); border-radius: 9px;
  transition: all .2s; position: relative;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--bg3); }
.nav-link.active { color: var(--text); }
.nav-badge {
  position: absolute; top: -2px; right: 2px;
  background: var(--grad-main); color: #fff;
  font-size: 7px; font-weight: 800;
  padding: 2px 5px; border-radius: 999px;
  letter-spacing: .8px; text-transform: uppercase;
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.btn-icon {
  position: relative;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: var(--text2);
  transition: all .2s; text-decoration: none;
}
.btn-icon:hover { border-color: var(--accent); color: var(--text); }
.badge-count {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px;
  background: var(--accent); color: #fff;
  font-size: 9px; font-weight: 700;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.btn-entrar {
  padding: 9px 22px; border-radius: 11px;
  background: var(--grad-main); color: #fff;
  font-size: 13px; font-weight: 700;
  border: none; transition: all .2s;
  box-shadow: 0 4px 16px rgba(99,102,241,.4);
}
.btn-entrar:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,102,241,.5); }

/* ═══════════════════════════════════════════════════════
   PAGE LAYOUT
═══════════════════════════════════════════════════════ */
.site-main {
  position: relative; z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 32px;
}
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 28px;
  align-items: start;
}
.content-area { display: flex; flex-direction: column; gap: 28px; }
.sidebar-area  { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600;
  border: none; cursor: pointer; transition: all .2s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--grad-main); color: #fff;
  box-shadow: 0 6px 20px rgba(99,102,241,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(99,102,241,.5); }
.btn-secondary {
  background: var(--bg4); color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { background: var(--bg3); border-color: var(--accent); }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: rgba(99,102,241,.1); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-xs { padding: 4px 10px; font-size: 11px; border-radius: 7px; }
.btn-green  { background: var(--grad-green); color: #000; font-weight: 700; box-shadow: 0 6px 20px rgba(0,230,118,.3); }
.btn-danger { background: rgba(255,82,82,.15); color: var(--red); border: 1px solid rgba(255,82,82,.3); }

/* ═══════════════════════════════════════════════════════
   CARDS & PANELS
═══════════════════════════════════════════════════════ */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.card-body { padding: 20px 22px; }

/* Section titles */
.sec-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.sec-title {
  font-family: 'Syne', sans-serif;
  font-size: 19px; font-weight: 800;
  display: flex; align-items: center; gap: 10px;
}
.sec-title::before {
  content: '';
  display: inline-block; width: 3px; height: 22px;
  background: var(--grad-main); border-radius: 999px;
}
.sec-link {
  font-size: 13px; color: var(--accent);
  display: flex; align-items: center; gap: 4px;
  transition: gap .2s;
}
.sec-link:hover { gap: 8px; }

/* ═══════════════════════════════════════════════════════
   BADGES & TAGS
═══════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase;
}
.badge-novo      { background: rgba(0,230,118,.12); color: var(--green);  border: 1px solid rgba(0,230,118,.25); }
.badge-atualiz   { background: rgba(0,229,255,.10); color: var(--cyan);   border: 1px solid rgba(0,229,255,.22); }
.badge-destaque  { background: rgba(255,215,64,.12); color: var(--gold);  border: 1px solid rgba(255,215,64,.25); }
.badge-premium   { background: rgba(240,89,200,.12); color: var(--pink);  border: 1px solid rgba(240,89,200,.25); }
.badge-hot       { background: rgba(255,145,0,.12); color: var(--orange); border: 1px solid rgba(255,145,0,.25); }

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 52px 52px 0;
  position: relative; overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px; min-height: 340px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 20% 40%, rgba(99,102,241,.15), transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 20%, rgba(168,85,247,.1), transparent 55%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; color: var(--cyan);
  text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 { margin-bottom: 18px; }
.hero p  { font-size: 15px; max-width: 500px; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-visual {
  display: flex; align-items: flex-end;
  justify-content: center; padding-bottom: 0;
}
.hero-icon {
  font-size: 130px;
  filter: drop-shadow(0 0 50px rgba(99,102,241,.7));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-18px)}
}

/* ═══════════════════════════════════════════════════════
   FEATURES BAR
═══════════════════════════════════════════════════════ */
.features-bar {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 16px;
}
.feat-item { display: flex; align-items: center; gap: 13px; }
.feat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center;
  justify-content: center; font-size: 20px; flex-shrink: 0;
}
.feat-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.feat-sub   { font-size: 11px; color: var(--text3); }

/* ═══════════════════════════════════════════════════════
   PRODUCT CARDS
═══════════════════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.prod-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1),
              border-color .2s, box-shadow .25s;
}
.prod-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c, #6366f1)10, transparent 55%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.prod-card:hover {
  transform: translateY(-5px);
  border-color: var(--border2);
  box-shadow: 0 20px 44px rgba(0,0,0,.4);
}
.prod-card:hover::before { opacity: 1; }
.prod-tag {
  position: absolute; top: 10px; right: 10px;
}
.prod-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center;
  justify-content: center; font-size: 26px;
  margin-bottom: 13px;
  box-shadow: var(--shadow-sm);
}
.prod-name { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.prod-cat  { font-size: 11px; color: var(--text3); margin-bottom: 10px; }
.prod-stats {
  display: flex; gap: 10px; margin-bottom: 10px;
}
.prod-stat { font-size: 10px; color: var(--text3); }
.prod-price {
  font-family: 'Syne', sans-serif;
  font-size: 17px; font-weight: 800;
  background: var(--grad-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.prod-actions { display: flex; gap: 6px; }
.prod-btn-ver {
  flex: 1; padding: 7px 0;
  background: var(--bg4); color: var(--text2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 600;
  text-align: center; transition: all .2s;
}
.prod-btn-ver:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.prod-btn-cart {
  width: 32px; height: 32px;
  background: var(--bg4); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: all .2s;
}
.prod-btn-cart:hover { background: var(--green); border-color: var(--green); }

/* ═══════════════════════════════════════════════════════
   GUARANTEE BAR
═══════════════════════════════════════════════════════ */
.guarantee-bar {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 28px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px;
}
.guar-item { display: flex; align-items: center; gap: 12px; }
.guar-icon { font-size: 26px; flex-shrink: 0; }
.guar-title { font-size: 13px; font-weight: 700; }
.guar-sub   { font-size: 11px; color: var(--text3); }

/* ═══════════════════════════════════════════════════════
   SIDEBAR — STATS
═══════════════════════════════════════════════════════ */
.widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.widget-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 700;
  color: var(--text2);
  display: flex; align-items: center;
  justify-content: space-between; gap: 7px;
}
.widget-body { padding: 16px 18px; }

.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.stat-box {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px; padding: 13px;
}
.stat-box-icon { font-size: 20px; margin-bottom: 5px; }
.stat-box-val {
  font-family: 'Syne', sans-serif;
  font-size: 20px; font-weight: 800; line-height: 1;
  margin-bottom: 3px;
}
.stat-box-label { font-size: 10px; color: var(--text3); }

/* Recentes sidebar */
.rec-list { display: flex; flex-direction: column; }
.rec-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.rec-item:last-child { border-bottom: none; padding-bottom: 0; }
.rec-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center;
  justify-content: center; font-size: 17px; flex-shrink: 0;
}
.rec-info { flex: 1; min-width: 0; }
.rec-name {
  font-size: 12px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rec-sub  { font-size: 10px; color: var(--text3); }

/* ═══════════════════════════════════════════════════════
   GAMIPRESS — PLAYER CARD
═══════════════════════════════════════════════════════ */
.gami-player-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.gami-player-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(135deg, rgba(99,102,241,.3), rgba(168,85,247,.2));
}
.gami-avatar-wrap {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; padding: 24px 20px 16px;
}
.gami-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--grad-main);
  display: flex; align-items: center;
  justify-content: center; font-size: 30px;
  border: 3px solid var(--bg2);
  box-shadow: 0 0 0 2px var(--accent), 0 8px 24px rgba(99,102,241,.4);
  margin-bottom: 10px;
}
.gami-username {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 800; margin-bottom: 3px;
}
.gami-level {
  font-size: 11px; color: var(--cyan);
  font-weight: 600; letter-spacing: .5px;
}
.gami-points-row {
  display: flex; gap: 8px;
  padding: 0 18px 16px;
  border-bottom: 1px solid var(--border);
}
.gami-point-box {
  flex: 1; background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 10px;
  text-align: center;
}
.gami-point-val {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 800;
  color: var(--gold);
}
.gami-point-label { font-size: 9px; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; }

/* XP Bar */
.gami-xp-section { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.gami-xp-label {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text3);
  margin-bottom: 7px;
}
.gami-xp-bar {
  height: 6px; background: var(--bg4);
  border-radius: 999px; overflow: hidden;
}
.gami-xp-fill {
  height: 100%; border-radius: 999px;
  background: var(--grad-main);
  transition: width .8s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 0 10px rgba(99,102,241,.6);
}

/* Badges GamiPress */
.gami-badges-section { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.gami-badges-title {
  font-size: 11px; font-weight: 700; color: var(--text2);
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px;
}
.gami-badges-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.gami-badge-item {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center;
  justify-content: center; font-size: 22px;
  position: relative; cursor: pointer;
  transition: transform .2s;
}
.gami-badge-item:hover { transform: scale(1.15); }
.gami-badge-item.locked {
  opacity: .3; filter: grayscale(1);
}
.gami-badge-item.locked::after {
  content: '🔒'; position: absolute;
  bottom: -2px; right: -2px;
  font-size: 10px;
}

/* Rank */
.gami-rank-section { padding: 14px 18px; }
.gami-rank-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
}
.gami-rank-icon { font-size: 28px; }
.gami-rank-info { flex: 1; }
.gami-rank-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.gami-rank-sub  { font-size: 10px; color: var(--text3); }
.gami-rank-pts  {
  font-family: 'Syne', sans-serif;
  font-size: 15px; font-weight: 800;
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════
   GAMIPRESS — LEADERBOARD
═══════════════════════════════════════════════════════ */
.leaderboard-list { display: flex; flex-direction: column; gap: 0; }
.lb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.lb-item:last-child { border-bottom: none; }
.lb-pos {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center;
  justify-content: center;
  font-size: 11px; font-weight: 800;
  flex-shrink: 0;
}
.lb-pos-1 { background: var(--gold); color: #000; }
.lb-pos-2 { background: rgba(200,200,220,.2); color: var(--text2); border: 1px solid rgba(200,200,220,.3); }
.lb-pos-3 { background: rgba(180,130,80,.2); color: #cd7f32; border: 1px solid rgba(180,130,80,.3); }
.lb-pos-n { background: var(--bg3); color: var(--text3); border: 1px solid var(--border); font-size: 10px; }
.lb-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center;
  justify-content: center; font-size: 15px;
  flex-shrink: 0;
}
.lb-info { flex: 1; min-width: 0; }
.lb-name { font-size: 12px; font-weight: 600; }
.lb-pts  { font-size: 10px; color: var(--text3); }
.lb-score {
  font-family: 'Syne', sans-serif;
  font-size: 13px; font-weight: 800;
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════
   GAMIPRESS — ACHIEVEMENTS
═══════════════════════════════════════════════════════ */
.achievement-list { display: flex; flex-direction: column; gap: 8px; }
.ach-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .2s;
}
.ach-item:hover { border-color: var(--border2); }
.ach-item.locked { opacity: .5; }
.ach-icon { font-size: 22px; flex-shrink: 0; }
.ach-info { flex: 1; min-width: 0; }
.ach-name { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.ach-desc { font-size: 10px; color: var(--text3); }
.ach-pts  {
  font-size: 11px; font-weight: 700; color: var(--gold);
  white-space: nowrap;
}
.ach-progress {
  height: 3px; background: var(--bg4);
  border-radius: 999px; margin-top: 5px; overflow: hidden;
}
.ach-progress-fill {
  height: 100%; background: var(--grad-main);
  border-radius: 999px;
}

/* ═══════════════════════════════════════════════════════
   BBPRESS — FORUM
═══════════════════════════════════════════════════════ */
.forum-header {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  position: relative; overflow: hidden;
}
.forum-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 10% 50%, rgba(99,102,241,.1), transparent);
  pointer-events: none;
}
.forum-header h1 { margin-bottom: 8px; }
.forum-header p { font-size: 14px; margin-bottom: 20px; }
.forum-stats-row {
  display: flex; gap: 24px;
}
.forum-stat {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--text2);
}
.forum-stat strong { color: var(--text); }

/* Forum categories */
.forum-categories { display: flex; flex-direction: column; gap: 4px; }
.forum-cat {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.forum-cat-header {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  cursor: pointer; transition: background .2s;
  position: relative;
}
.forum-cat-header:hover { background: rgba(99,102,241,.06); }
.forum-cat-icon {
  width: 48px; height: 48px; border-radius: 13px;
  display: flex; align-items: center;
  justify-content: center; font-size: 22px; flex-shrink: 0;
}
.forum-cat-info { flex: 1; }
.forum-cat-name {
  font-family: 'Syne', sans-serif;
  font-size: 15px; font-weight: 700;
  margin-bottom: 3px;
}
.forum-cat-desc { font-size: 12px; color: var(--text3); }
.forum-cat-meta {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 3px;
  font-size: 11px; color: var(--text3);
  white-space: nowrap;
}
.forum-cat-meta strong { color: var(--text); font-size: 13px; }

/* Forum sub-forums */
.forum-subcat {
  border-top: 1px solid var(--border);
  padding: 0 22px;
}
.forum-subcat-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.forum-subcat-item:last-child { border-bottom: none; }
.sub-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center;
  justify-content: center; font-size: 18px; flex-shrink: 0;
}
.sub-info { flex: 1; }
.sub-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; transition: color .2s; }
.sub-name:hover { color: var(--accent); }
.sub-desc { font-size: 11px; color: var(--text3); }
.sub-stats {
  display: flex; gap: 16px;
  font-size: 11px; color: var(--text3);
}
.sub-stats strong { color: var(--text); display: block; font-size: 14px; }
.sub-last {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 2px;
  max-width: 160px;
}
.sub-last-title {
  font-size: 11px; color: var(--text);
  white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 160px;
  text-align: right;
}
.sub-last-time { font-size: 10px; color: var(--text3); }
.sub-last-author { font-size: 10px; color: var(--accent); }

/* Topic list */
.topic-list { display: flex; flex-direction: column; gap: 0; }
.topic-item {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  transition: background .2s;
}
.topic-item:last-child { border-bottom: none; }
.topic-item:hover { background: rgba(99,102,241,.04); }
.topic-item:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.topic-status {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center;
  justify-content: center; font-size: 16px; flex-shrink: 0;
}
.topic-status.solved  { background: rgba(0,230,118,.1); border: 1px solid rgba(0,230,118,.2); }
.topic-status.open    { background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.2); }
.topic-status.pinned  { background: rgba(255,215,64,.1); border: 1px solid rgba(255,215,64,.2); }
.topic-status.hot     { background: rgba(255,145,0,.1); border: 1px solid rgba(255,145,0,.2); }
.topic-info { flex: 1; min-width: 0; }
.topic-title {
  font-size: 14px; font-weight: 600; color: var(--text);
  margin-bottom: 4px; transition: color .2s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topic-title:hover { color: var(--accent); }
.topic-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--text3);
}
.topic-meta a { color: var(--accent); }
.topic-counts {
  display: flex; gap: 16px;
  font-size: 11px; color: var(--text3);
  flex-shrink: 0;
}
.topic-counts strong { color: var(--text); display: block; font-size: 13px; }
.topic-last {
  width: 140px; flex-shrink: 0; text-align: right;
}
.topic-last-time { font-size: 10px; color: var(--text3); }
.topic-last-user { font-size: 11px; color: var(--accent); }

/* Topic view */
.topic-header {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 28px;
  margin-bottom: 20px;
}
.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: grid; grid-template-columns: 160px 1fr;
}
.post-author {
  background: var(--bg3); border-right: 1px solid var(--border);
  padding: 20px 16px; text-align: center;
}
.post-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--grad-main);
  display: flex; align-items: center;
  justify-content: center; font-size: 26px;
  margin: 0 auto 10px;
  border: 2px solid var(--accent);
}
.post-author-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.post-author-role {
  font-size: 10px; color: var(--cyan); font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 8px;
}
.post-author-stats { font-size: 10px; color: var(--text3); line-height: 1.8; }
.post-content { padding: 20px 24px; }
.post-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text3);
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.post-body { font-size: 14px; color: var(--text2); line-height: 1.8; }
.post-body p { margin-bottom: 12px; color: var(--text2); }
.post-body code {
  background: var(--bg3); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 5px;
  font-size: 12px; font-family: 'Fira Code', monospace;
  color: var(--cyan);
}
.post-actions {
  display: flex; align-items: center; gap: 8px;
  padding-top: 12px; margin-top: 12px;
  border-top: 1px solid var(--border);
}

/* Reply form */
.reply-form {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.reply-form h3 { margin-bottom: 16px; font-size: 16px; }
.reply-form textarea {
  width: 100%; min-height: 120px; padding: 12px 16px;
  border-radius: var(--radius); resize: vertical;
  font-size: 14px; line-height: 1.6;
}
.reply-form-footer {
  display: flex; align-items: center;
  justify-content: space-between; margin-top: 12px;
}

/* ═══════════════════════════════════════════════════════
   FORUM BREADCRUMB
═══════════════════════════════════════════════════════ */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text3);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text3); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text3); }
.breadcrumb-current { color: var(--text2); }

/* ═══════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════ */
.pagination {
  display: flex; align-items: center;
  justify-content: center; gap: 4px;
  padding: 20px 0;
}
.page-btn {
  min-width: 36px; height: 36px;
  border-radius: 9px; padding: 0 10px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; cursor: pointer;
}
.page-btn:hover { border-color: var(--accent); color: var(--text); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-ellipsis { color: var(--text3); padding: 0 4px; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 52px 32px 28px;
  position: relative; z-index: 2;
  margin-top: 60px;
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 280px repeat(4,1fr);
  gap: 44px; margin-bottom: 40px;
}
.footer-brand p { font-size: 13px; color: var(--text3); line-height: 1.7; max-width: 220px; margin-top: 14px; }
.footer-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: var(--text3); margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.pay-grid { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.pay-pill {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 12px;
  font-size: 11px; font-weight: 700; color: var(--text2);
}
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text3);
}
.footer-bottom a { color: var(--text3); transition: color .2s; }
.footer-bottom a:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════ */
@keyframes fadeUp   { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn   { from{opacity:0} to{opacity:1} }
@keyframes pulse    { 0%,100%{opacity:1} 50%{opacity:.5} }
@keyframes spin     { to{transform:rotate(360deg)} }
@keyframes shimmer  {
  0%{background-position:-200% 0}
  100%{background-position:200% 0}
}
.fade-up    { animation: fadeUp .5s ease both; }
.fade-in    { animation: fadeIn .4s ease both; }
.delay-1 { animation-delay: .1s }
.delay-2 { animation-delay: .2s }
.delay-3 { animation-delay: .3s }
.delay-4 { animation-delay: .4s }
.delay-5 { animation-delay: .5s }
.delay-6 { animation-delay: .6s }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--bg4) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

/* Online dot */
.online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .sidebar-area { position: static; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .features-bar, .guarantee-bar { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .site-header { padding: 0 16px; gap: 12px; }
  .header-nav { display: none; }
  .header-search { max-width: 200px; }
  .site-main { padding: 20px 16px; }
  .hero { grid-template-columns: 1fr; padding: 32px 28px 32px; }
  .hero-visual { display: none; }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .features-bar, .guarantee-bar { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-item { grid-template-columns: 1fr; }
  .post-author { border-right: none; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
  .post-author .post-avatar { margin: 0; width: 44px; height: 44px; }
}

/* ═══════════════════════════════════════════════════════
   LOJA / SHOP
═══════════════════════════════════════════════════════ */
.shop-filters {
  background:var(--bg2);border:1px solid var(--border);
  border-radius:var(--radius-lg);padding:16px 20px;
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
}
.filter-btn {
  padding:6px 14px;border-radius:999px;
  font-size:12px;font-weight:600;
  background:var(--bg4);border:1px solid var(--border);
  color:var(--text2);cursor:pointer;transition:all .2s;
}
.filter-btn:hover,.filter-btn.active {
  background:var(--accent);border-color:var(--accent);color:#fff;
}
.shop-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:16px;
}
.shop-sort {
  display:flex;align-items:center;gap:8px;margin-left:auto;
  font-size:12px;color:var(--text2);
}
.shop-sort select {
  padding:5px 10px;border-radius:8px;font-size:12px;
  background:var(--bg3);border:1px solid var(--border);color:var(--text);
}

/* ═══════════════════════════════════════════════════════
   PLANOS / PRICING
═══════════════════════════════════════════════════════ */
.plans-grid {
  display:grid;grid-template-columns:repeat(3,1fr);gap:20px;
}
.plan-card {
  background:var(--bg2);border:1px solid var(--border);
  border-radius:var(--radius-xl);padding:32px 28px;
  position:relative;transition:transform .25s,border-color .2s,box-shadow .2s;
  display:flex;flex-direction:column;
}
.plan-card:hover {
  transform:translateY(-6px);
  box-shadow:0 24px 60px rgba(0,0,0,.4);
}
.plan-card.featured {
  border-color:var(--accent);
  box-shadow:0 0 0 1px var(--accent),0 20px 50px rgba(99,102,241,.25);
}
.plan-badge-popular {
  position:absolute;top:-14px;left:50%;transform:translateX(-50%);
  background:var(--grad-main);color:#fff;
  font-size:11px;font-weight:800;padding:4px 16px;
  border-radius:999px;white-space:nowrap;
  box-shadow:0 4px 14px rgba(99,102,241,.5);
}
.plan-name { font-family:'Syne',sans-serif;font-size:18px;font-weight:800;margin-bottom:8px; }
.plan-desc { font-size:13px;color:var(--text3);margin-bottom:24px; }
.plan-price {
  display:flex;align-items:baseline;gap:4px;margin-bottom:8px;
}
.plan-price-val {
  font-family:'Syne',sans-serif;font-size:42px;font-weight:800;
  background:var(--grad-cyan);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
}
.plan-price-period { font-size:14px;color:var(--text3); }
.plan-price-orig { font-size:13px;color:var(--text3);text-decoration:line-through;margin-bottom:20px; }
.plan-features {
  flex:1;display:flex;flex-direction:column;gap:10px;margin-bottom:28px;
}
.plan-feat {
  display:flex;align-items:center;gap:9px;
  font-size:13px;color:var(--text2);
}
.plan-feat.yes::before { content:'✓';color:var(--green);font-weight:800;font-size:14px; }
.plan-feat.no  { opacity:.4; }
.plan-feat.no::before  { content:'×';color:var(--red);font-weight:800;font-size:14px; }

/* ═══════════════════════════════════════════════════════
   LOGIN / REGISTER
═══════════════════════════════════════════════════════ */
.auth-wrap {
  min-height:calc(100vh - var(--header-h));
  display:flex;align-items:center;justify-content:center;
  padding:40px 20px;position:relative;z-index:2;
}
.auth-card {
  width:100%;max-width:440px;
  background:var(--bg2);border:1px solid var(--border);
  border-radius:var(--radius-xl);overflow:hidden;
}
.auth-header {
  padding:32px 36px 24px;text-align:center;
  background:linear-gradient(135deg,rgba(99,102,241,.12),rgba(168,85,247,.06));
  border-bottom:1px solid var(--border);
}
.auth-tabs {
  display:flex;border-bottom:1px solid var(--border);
}
.auth-tab {
  flex:1;padding:14px;text-align:center;
  font-size:14px;font-weight:600;color:var(--text2);
  cursor:pointer;transition:all .2s;border:none;background:none;
}
.auth-tab.active {
  color:var(--accent);
  box-shadow:inset 0 -2px 0 var(--accent);
}
.auth-body { padding:28px 36px; }
.form-group { margin-bottom:18px; }
.form-label { font-size:13px;font-weight:600;display:block;margin-bottom:7px;color:var(--text2); }
.form-input {
  width:100%;padding:11px 16px;border-radius:var(--radius);
  font-size:14px;background:var(--bg3);border:1px solid var(--border);
  color:var(--text);transition:all .2s;
}
.form-input:focus { border-color:var(--accent);box-shadow:0 0 0 3px rgba(99,102,241,.15); }
.form-divider {
  display:flex;align-items:center;gap:12px;margin:20px 0;
  color:var(--text3);font-size:12px;
}
.form-divider::before,.form-divider::after {
  content:'';flex:1;height:1px;background:var(--border);
}
.social-btn {
  width:100%;padding:11px;border-radius:var(--radius);
  background:var(--bg3);border:1px solid var(--border);
  color:var(--text);font-size:13px;font-weight:600;
  display:flex;align-items:center;justify-content:center;gap:9px;
  cursor:pointer;transition:all .2s;margin-bottom:10px;
}
.social-btn:hover { border-color:var(--accent);background:var(--bg4); }
.auth-footer { padding:16px 36px;text-align:center;font-size:12px;color:var(--text3);border-top:1px solid var(--border); }
.auth-footer a { color:var(--accent); }

/* ═══════════════════════════════════════════════════════
   MINHA CONTA / DASHBOARD
═══════════════════════════════════════════════════════ */
.account-layout {
  display:grid;grid-template-columns:240px 1fr;gap:24px;
}
.account-sidebar {
  display:flex;flex-direction:column;gap:4px;
  background:var(--bg2);border:1px solid var(--border);
  border-radius:var(--radius-lg);padding:16px;
  height:fit-content;position:sticky;top:calc(var(--header-h) + 20px);
}
.account-user {
  text-align:center;padding:16px 8px 20px;
  border-bottom:1px solid var(--border);margin-bottom:12px;
}
.account-avatar {
  width:64px;height:64px;border-radius:50%;
  background:var(--grad-main);
  display:flex;align-items:center;justify-content:center;
  font-size:28px;margin:0 auto 10px;
  border:2px solid var(--accent);
  box-shadow:0 0 0 3px rgba(99,102,241,.2);
}
.account-name { font-size:15px;font-weight:700;margin-bottom:3px; }
.account-plan {
  display:inline-flex;align-items:center;gap:5px;
  font-size:11px;font-weight:700;
  padding:3px 10px;border-radius:999px;
  background:rgba(99,102,241,.15);color:var(--accent);
  border:1px solid rgba(99,102,241,.3);
}
.account-nav-item {
  display:flex;align-items:center;gap:10px;
  padding:9px 12px;border-radius:10px;
  font-size:13px;color:var(--text2);
  cursor:pointer;transition:all .2s;text-decoration:none;
}
.account-nav-item:hover { background:var(--bg3);color:var(--text); }
.account-nav-item.active { background:rgba(99,102,241,.12);color:var(--accent);font-weight:600; }
.account-nav-item span { font-size:17px; }
.account-content { display:flex;flex-direction:column;gap:20px; }
.account-header-box {
  background:var(--bg2);border:1px solid var(--border);
  border-radius:var(--radius-lg);padding:24px 28px;
  display:flex;align-items:center;justify-content:space-between;
}

/* Downloads */
.downloads-grid { display:flex;flex-direction:column;gap:0; }
.download-item {
  display:flex;align-items:center;gap:16px;
  padding:16px 22px;border-bottom:1px solid var(--border);
  background:var(--bg2);transition:background .2s;
}
.download-item:last-child { border-bottom:none; }
.download-item:hover { background:rgba(99,102,241,.04); }
.download-icon {
  width:48px;height:48px;border-radius:13px;
  display:flex;align-items:center;justify-content:center;
  font-size:24px;flex-shrink:0;
}
.download-info { flex:1;min-width:0; }
.download-name { font-size:14px;font-weight:700;margin-bottom:3px; }
.download-meta { font-size:11px;color:var(--text3); }
.download-version {
  font-size:12px;font-weight:700;color:var(--cyan);
  background:rgba(0,229,255,.1);padding:3px 9px;
  border-radius:999px;border:1px solid rgba(0,229,255,.2);
  flex-shrink:0;
}
.download-btn {
  padding:7px 16px;border-radius:9px;
  background:var(--grad-main);color:#fff;
  font-size:12px;font-weight:700;
  border:none;cursor:pointer;transition:all .2s;
  display:flex;align-items:center;gap:6px;flex-shrink:0;
  text-decoration:none;
  box-shadow:0 4px 14px rgba(99,102,241,.35);
}
.download-btn:hover { transform:translateY(-1px);box-shadow:0 6px 20px rgba(99,102,241,.5); }
.download-btn.locked {
  background:var(--bg4);color:var(--text3);
  border:1px solid var(--border);box-shadow:none;
}

/* Doações */
.donation-tier {
  background:var(--bg2);border:1px solid var(--border);
  border-radius:var(--radius-lg);padding:24px;
  transition:all .25s;cursor:pointer;
}
.donation-tier:hover,.donation-tier.selected {
  border-color:var(--accent);
  box-shadow:0 0 0 1px var(--accent),0 12px 36px rgba(99,102,241,.2);
}
.donation-tier.selected { background:rgba(99,102,241,.05); }
.donation-amount {
  font-family:'Syne',sans-serif;
  font-size:32px;font-weight:800;
  color:var(--gold);margin-bottom:6px;
}
.donation-perks { display:flex;flex-direction:column;gap:6px;margin-top:12px; }
.donation-perk {
  display:flex;align-items:center;gap:8px;
  font-size:12px;color:var(--text2);
}
.donation-perk::before { content:'✓';color:var(--green);font-weight:800; }

/* ═══════════════════════════════════════════════════════
   RECURSOS / DOWNLOADS (estilo Babiato)
═══════════════════════════════════════════════════════ */
.recursos-grid { display:flex;flex-direction:column;gap:0; }
.recurso-item {
  display:flex;align-items:center;gap:16px;
  padding:15px 22px;
  background:var(--bg2);border-bottom:1px solid var(--border);
  transition:background .15s;cursor:pointer;
}
.recurso-item:first-child { border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
.recurso-item:last-child  { border-radius:0 0 var(--radius-lg) var(--radius-lg);border-bottom:none; }
.recurso-item:hover { background:rgba(99,102,241,.05); }
.recurso-thumb {
  width:52px;height:52px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  font-size:26px;flex-shrink:0;
}
.recurso-info { flex:1;min-width:0; }
.recurso-title {
  font-size:14px;font-weight:700;color:var(--text);
  margin-bottom:4px;transition:color .15s;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.recurso-title:hover { color:var(--accent); }
.recurso-meta {
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  font-size:11px;color:var(--text3);
}
.recurso-meta a { color:var(--accent); }
.recurso-stats {
  display:flex;gap:16px;flex-shrink:0;
  font-size:11px;color:var(--text3);
}
.recurso-stats strong { display:block;font-size:13px;font-weight:700;color:var(--text); }
.recurso-dl-btn {
  padding:7px 16px;border-radius:9px;
  background:var(--grad-main);color:#fff;
  font-size:12px;font-weight:700;
  border:none;cursor:pointer;
  display:flex;align-items:center;gap:6px;
  white-space:nowrap;flex-shrink:0;
  text-decoration:none;
  box-shadow:0 3px 12px rgba(99,102,241,.35);
  transition:all .2s;
}
.recurso-dl-btn:hover { transform:translateY(-1px);box-shadow:0 6px 18px rgba(99,102,241,.5); }
.recurso-dl-btn.locked {
  background:var(--bg4);color:var(--text3);
  border:1px solid var(--border);box-shadow:none;
}
.recurso-dl-btn.locked:hover { transform:none;background:var(--bg3); }

/* Recurso detalhe */
.recurso-header {
  background:var(--bg2);border:1px solid var(--border);
  border-radius:var(--radius-xl);padding:30px 36px;
}
.recurso-version-box {
  background:var(--bg3);border:1px solid var(--border);
  border-radius:var(--radius);padding:16px 20px;
  display:flex;align-items:center;gap:12px;
}
.version-badge {
  background:rgba(0,229,255,.1);color:var(--cyan);
  border:1px solid rgba(0,229,255,.25);
  font-size:11px;font-weight:700;padding:4px 10px;
  border-radius:999px;white-space:nowrap;
}

/* Pontos GamiPress inline */
.points-needed {
  display:inline-flex;align-items:center;gap:6px;
  background:rgba(255,215,64,.1);color:var(--gold);
  border:1px solid rgba(255,215,64,.25);
  font-size:12px;font-weight:700;
  padding:5px 12px;border-radius:999px;
}

/* Categoria chips */
.cat-chips { display:flex;gap:6px;flex-wrap:wrap; }
.cat-chip {
  padding:5px 13px;border-radius:999px;
  font-size:12px;font-weight:600;cursor:pointer;
  background:var(--bg3);border:1px solid var(--border);
  color:var(--text2);transition:all .2s;text-decoration:none;
}
.cat-chip:hover,.cat-chip.active {
  background:var(--accent);border-color:var(--accent);color:#fff;
}

/* Sidebar points widget */
.points-widget {
  background:var(--bg2);border:1px solid rgba(255,215,64,.3);
  border-radius:var(--radius-lg);overflow:hidden;
}
.points-widget-header {
  background:rgba(255,215,64,.08);padding:14px 18px;
  border-bottom:1px solid rgba(255,215,64,.2);
  font-size:13px;font-weight:700;
  display:flex;align-items:center;gap:7px;
}
.points-earn-list { padding:14px 18px; }
.points-earn-item {
  display:flex;align-items:center;justify-content:space-between;
  padding:8px 0;border-bottom:1px solid var(--border);
  font-size:12px;
}
.points-earn-item:last-child { border-bottom:none; }

/* HOW IT WORKS */
.how-step {
  display:flex;gap:16px;align-items:flex-start;
  padding:16px 0;border-bottom:1px solid var(--border);
}
.how-step:last-child { border-bottom:none; }
.how-num {
  width:32px;height:32px;border-radius:50%;
  background:var(--grad-main);
  display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:800;color:#fff;
  flex-shrink:0;
}

/* ═══════════════════════════════════════════════════════
   FORUM BABIATO STYLE — SECTIONS & SIDEBAR
═══════════════════════════════════════════════════════ */
/* Forum section header (like Babiato WORDPRESS / DONORS ONLY) */
.forum-section-bar {
  background:linear-gradient(90deg,rgba(99,102,241,.25),rgba(99,102,241,.1));
  border:1px solid rgba(99,102,241,.35);
  border-radius:var(--radius) var(--radius) 0 0;
  padding:10px 18px;
  display:flex;align-items:center;justify-content:space-between;
  font-family:'Syne',sans-serif;font-size:12px;font-weight:800;
  color:var(--cyan);letter-spacing:1.5px;text-transform:uppercase;
  cursor:pointer;user-select:none;
}
.forum-section-bar:hover { background:linear-gradient(90deg,rgba(99,102,241,.32),rgba(99,102,241,.15)); }
.forum-section-body {
  border:1px solid var(--border);border-top:none;
  border-radius:0 0 var(--radius) var(--radius);
  overflow:hidden;
  margin-bottom:4px;
}
.forum-row {
  display:grid;
  grid-template-columns:48px 1fr 90px 90px 1fr;
  gap:0;align-items:center;
  padding:14px 16px;
  background:var(--bg2);
  border-bottom:1px solid var(--border);
  transition:background .15s;
}
.forum-row:last-child { border-bottom:none; }
.forum-row:hover { background:rgba(99,102,241,.04); }
.forum-row-icon {
  width:38px;height:38px;border-radius:9px;
  background:var(--bg3);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  font-size:18px;flex-shrink:0;
}
.forum-row-info { padding:0 16px; }
.forum-row-name {
  font-size:14px;font-weight:700;color:var(--text);
  margin-bottom:4px;transition:color .15s;
}
.forum-row-name:hover { color:var(--accent); }
.forum-row-desc { font-size:11px;color:var(--text3);line-height:1.5; }
.forum-row-subs { display:flex;gap:8px;margin-top:4px;flex-wrap:wrap; }
.forum-row-sub {
  font-size:10px;color:var(--accent);
  display:flex;align-items:center;gap:3px;
}
.forum-row-stat { text-align:center;padding:0 8px; }
.forum-row-stat strong { display:block;font-family:'Syne',sans-serif;font-size:14px;font-weight:800;color:var(--text); }
.forum-row-stat span { font-size:10px;color:var(--text3);text-transform:uppercase;letter-spacing:.5px; }
.forum-row-last { padding:0 4px; }
.forum-row-last-title {
  font-size:11px;color:var(--text);font-weight:600;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  max-width:200px;margin-bottom:3px;
}
.forum-row-last-meta { font-size:10px;color:var(--text3); }
.forum-row-last-meta a { color:var(--accent); }

/* Feed tabs (Latest Posts / Latest Threads / Hottest) */
.feed-tabs {
  display:flex;border-bottom:1px solid var(--border);
  background:var(--bg2);
  border-radius:var(--radius) var(--radius) 0 0;
  overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.feed-tabs::-webkit-scrollbar { display:none; }
.feed-panel { background:var(--bg2); }
.feed-panel .feed-row:last-child { border-bottom:none; }
.feed-empty { background:var(--bg2);border-radius:0 0 var(--radius) var(--radius); }
.feed-tab {
  padding:11px 16px;font-size:12px;font-weight:700;
  color:var(--text2);cursor:pointer;border:none;background:none;
  border-bottom:2px solid transparent;transition:all .2s;
  text-transform:uppercase;letter-spacing:.8px;white-space:nowrap;
}
.feed-tab:hover { color:var(--text);background:rgba(99,102,241,.05); }
.feed-tab.active { color:var(--cyan);border-bottom-color:var(--cyan);background:rgba(0,229,255,.05); }
.feed-row {
  display:flex;align-items:center;gap:12px;
  padding:10px 16px;border-bottom:1px solid var(--border);
  background:var(--bg2);transition:background .15s;
}
.feed-row:last-child { border-bottom:none;border-radius:0 0 var(--radius) var(--radius); }
.feed-row:hover { background:rgba(99,102,241,.04); }
.feed-thumb {
  width:32px;height:32px;border-radius:7px;
  background:var(--bg3);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  font-size:15px;flex-shrink:0;
}
.feed-title {
  flex:1;font-size:12px;font-weight:600;color:var(--text);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  transition:color .15s;
}
.feed-title:hover { color:var(--accent); }
.feed-time { font-size:10px;color:var(--text3);white-space:nowrap;flex-shrink:0; }
.feed-badge {
  font-size:9px;font-weight:800;padding:2px 7px;
  border-radius:999px;flex-shrink:0;white-space:nowrap;
}
.feed-badge-sell { background:rgba(255,145,0,.15);color:var(--orange);border:1px solid rgba(255,145,0,.3); }

/* Sidebar widgets */
.sw { background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;margin-bottom:16px; }
.sw-header { padding:12px 16px;border-bottom:1px solid var(--border);font-size:12px;font-weight:800;color:var(--text2);text-transform:uppercase;letter-spacing:1px;display:flex;align-items:center;gap:8px; }
.sw-body { padding:14px 16px; }

/* Members online */
.members-online { display:flex;flex-wrap:wrap;gap:4px;line-height:1.8; }
.member-link { font-size:12px; }
.member-link.donor { color:var(--gold); }
.member-link.mod { color:var(--green); }
.member-link.admin { color:var(--pink); }
.member-link.regular { color:var(--text2); }
.member-link:hover { text-decoration:underline; }

/* Donation sidebar widget */
.sw-donate { background:var(--bg2);border:1px solid rgba(99,102,241,.3);border-radius:var(--radius-lg);overflow:hidden;margin-bottom:16px; }
.sw-donate-header { background:linear-gradient(90deg,rgba(99,102,241,.2),rgba(99,102,241,.08));padding:12px 16px;border-bottom:1px solid rgba(99,102,241,.2);font-size:13px;font-weight:800;color:var(--accent);display:flex;align-items:center;gap:8px; }
.sw-donate-body { padding:16px; }
.donate-month { font-family:'Syne',sans-serif;font-size:11px;font-weight:700;color:var(--text);margin-bottom:10px;text-transform:uppercase;letter-spacing:1px; }
.donate-amount { font-family:'Syne',sans-serif;font-size:28px;font-weight:800;color:var(--gold);margin-bottom:4px; }
.donate-info { font-size:11px;color:var(--text3);margin-bottom:12px;line-height:1.6; }
.donate-countdown { display:flex;gap:6px;margin-bottom:14px;justify-content:center; }
.countdown-box { background:var(--bg3);border:1px solid var(--border);border-radius:8px;padding:6px 8px;text-align:center;min-width:42px; }
.countdown-num { font-family:'Syne',sans-serif;font-size:18px;font-weight:800;color:var(--text);display:block;line-height:1; }
.countdown-label { font-size:8px;color:var(--text3);text-transform:uppercase;letter-spacing:.5px;margin-top:2px; }
.donate-btns { display:flex;gap:8px; }
.donate-btns a { flex:1;padding:8px;border-radius:9px;font-size:12px;font-weight:700;text-align:center;transition:all .2s; }
.btn-donate-main { background:var(--grad-main);color:#fff;box-shadow:0 4px 14px rgba(99,102,241,.35); }
.btn-donate-view { background:var(--bg3);color:var(--text2);border:1px solid var(--border); }
.btn-donate-view:hover { border-color:var(--accent);color:var(--text); }

/* Latest posts sidebar list */
.lp-item { display:flex;gap:10px;padding:9px 0;border-bottom:1px solid var(--border); }
.lp-item:last-child { border-bottom:none; }
.lp-avatar { width:28px;height:28px;border-radius:50%;background:var(--bg3);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0; }
.lp-info { flex:1;min-width:0; }
.lp-title { font-size:11px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:2px; }
.lp-meta { font-size:10px;color:var(--text3); }
.lp-meta a { color:var(--accent); }

/* Popular forums list */
.pf-item { display:flex;align-items:center;justify-content:space-between;padding:7px 0;border-bottom:1px solid var(--border);font-size:12px; }
.pf-item:last-child { border-bottom:none; }
.pf-name { color:var(--text2);transition:color .15s; }
.pf-name:hover { color:var(--accent); }
.pf-count { color:var(--text3);font-size:10px;white-space:nowrap; }

/* Forum category page (thread list) */
.thread-row {
  display:grid;
  grid-template-columns:38px 1fr 70px 70px 1fr;
  gap:0;align-items:center;
  padding:13px 18px;
  background:var(--bg2);
  border-bottom:1px solid var(--border);
  transition:background .15s;
}
.thread-row:hover { background:rgba(99,102,241,.04); }
.thread-row:last-child { border-bottom:none; }
.thread-icon { font-size:18px;text-align:center; }
.thread-info { padding:0 14px; }
.thread-title { font-size:13px;font-weight:600;color:var(--text);margin-bottom:3px;transition:color .15s; }
.thread-title:hover { color:var(--accent); }
.thread-meta { font-size:10px;color:var(--text3); }
.thread-meta a { color:var(--accent); }
.thread-stat { text-align:center; }
.thread-stat strong { display:block;font-size:13px;font-weight:700;color:var(--text); }
.thread-stat span { font-size:10px;color:var(--text3); }
.thread-last { padding-left:10px; }
.thread-last-title { font-size:11px;font-weight:600;color:var(--text);margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px; }
.thread-last-meta { font-size:10px;color:var(--text3); }
.thread-last-meta a { color:var(--accent); }

/* Profile page */
.profile-cover {
  height:180px;border-radius:var(--radius-xl) var(--radius-xl) 0 0;
  background:linear-gradient(135deg,rgba(99,102,241,.3),rgba(168,85,247,.2),rgba(0,229,255,.1));
  position:relative;overflow:hidden;
}
.profile-cover::after {
  content:'';position:absolute;inset:0;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.profile-avatar-wrap {
  position:absolute;bottom:-32px;left:28px;
  width:80px;height:80px;border-radius:50%;
  background:var(--grad-main);
  display:flex;align-items:center;justify-content:center;
  font-size:36px;
  border:3px solid var(--bg2);
  box-shadow:0 0 0 2px var(--accent),0 8px 24px rgba(99,102,241,.4);
}

/* New badge */
.badge-new-forum {
  display:inline-block;
  background:rgba(0,230,118,.15);color:var(--green);
  border:1px solid rgba(0,230,118,.3);
  font-size:8px;font-weight:800;padding:1px 6px;
  border-radius:3px;letter-spacing:.5px;vertical-align:middle;margin-left:4px;
}

/* ── TAREFA 17: Áreas de anúncios ───────────────────────────── */
.ptbr-ad-wrap{margin:14px 0;}
.ptbr-ad-slot{background:var(--bg2);border:1px solid var(--border);border-radius:14px;overflow:hidden;text-align:center;}
.ptbr-ad-slot img{max-width:100%;height:auto;display:block;margin:0 auto;}
.ptbr-ad-label{display:block;font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--text3);padding:6px 10px 0;}
.ptbr-ad-topbar{margin-bottom:6px;}
.ptbr-ad-ad-topo{min-height:60px;}
.ptbr-ad-ad-lateral{margin-bottom:16px;}
.ptbr-ad-ad-entre-cards{margin:20px 0;}
.ptbr-ad-ad-forum-topo{margin:0 0 18px;}

/* ── TAREFA 16: Conteúdo bloqueado por permissão ────────────── */
.ptbr-locked{display:inline-block;font-size:12px;color:var(--gold);background:rgba(255,215,64,.08);border:1px solid rgba(255,215,64,.25);border-radius:8px;padding:3px 10px;}

/* ── TAREFA 8 (tema): separação visual loja / fórum / comunidade ──── */
/* Cada contexto ganha uma faixa de cor própria no topo do conteúdo,
   ajudando o usuário a saber onde está. */
.page-loja .site-main,
.page-produto .site-main{--ctx:#00d4ff;}
.page-forum .site-main,
.page-forum-categoria .site-main,
.page-forum-topico .site-main{--ctx:#8b5cf6;}
.page-membros .site-main,
.page-perfil .site-main,
.page-doacoes .site-main{--ctx:#ffd740;}
.page-loja .site-main::before,
.page-produto .site-main::before,
.page-forum .site-main::before,
.page-forum-categoria .site-main::before,
.page-forum-topico .site-main::before,
.page-membros .site-main::before,
.page-perfil .site-main::before,
.page-doacoes .site-main::before{
  content:"";display:block;height:3px;width:100%;
  background:linear-gradient(90deg,var(--ctx,transparent),transparent);
  border-radius:3px;margin-bottom:16px;opacity:.8;
}
/* Etiqueta de contexto opcional */
.ptbr-context-tag{display:inline-flex;align-items:center;gap:6px;font-size:11px;
  font-weight:700;text-transform:uppercase;letter-spacing:.1em;padding:4px 12px;
  border-radius:999px;margin-bottom:14px;border:1px solid var(--border);
  color:var(--ctx,var(--text2));background:color-mix(in srgb,var(--ctx,#888) 12%,transparent);}

/* ═══════════════════════════════════════════════════════
   LOJA — MENU DE CATEGORIAS / BUSCA / PAGINAÇÃO  (v1.6.9.5)
   Cores mais visíveis em todo o site.
═══════════════════════════════════════════════════════ */

/* Cabeçalho de seção da sidebar (Categorias / Filtrar) */
.cat-head {
  font-size: 12px; font-weight: 800;
  color: var(--accent-bright);
  text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 12px;
}

/* Links de categoria — alto contraste */
.cat-link {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 9px 11px; margin-bottom: 4px;
  border-radius: 9px; font-size: 13px; font-weight: 600;
  color: var(--text); text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.cat-link:hover {
  background: rgba(139,155,255,.12);
  border-color: var(--border2);
  color: #fff;
}
.cat-link.active {
  background: rgba(139,155,255,.18);
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  font-weight: 800;
}
.cat-count {
  font-size: 11px; font-weight: 700;
  color: var(--text3);
  background: var(--bg4); border-radius: 999px;
  padding: 1px 8px;
}
.cat-link.active .cat-count { color: var(--accent-bright); }
.cat-sublink {
  display: block; padding: 6px 10px 6px 26px; margin-bottom: 2px;
  border-radius: 8px; font-size: 12px; text-decoration: none;
  color: var(--text2); transition: color .15s, background .15s;
}
.cat-sublink:hover { color: #fff; background: rgba(139,155,255,.10); }

/* Botões de filtro/categoria em pílula (loja.php) — estado ativo mais visível */
.filter-btn.active,
.nav-link.active {
  color: #fff;
}
.nav-link.active { background: rgba(139,155,255,.16); color: var(--accent-bright); }

/* Barra de busca da loja */
.ptbr-shop-search {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 10px; padding: 6px 12px;
  transition: border-color .15s;
}
.ptbr-shop-search:focus-within { border-color: var(--accent-bright); }
.ptbr-shop-search-ico { font-size: 13px; opacity: .8; }
.ptbr-shop-search input {
  background: transparent; border: none; outline: none;
  color: var(--text); font-size: 13px; width: 210px; max-width: 48vw;
}
.ptbr-shop-search input::placeholder { color: var(--text3); }

/* Paginação nativa do WooCommerce (rede de segurança onde aparecer) */
.woocommerce-pagination ul.page-numbers,
ul.page-numbers {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 4px;
}
.woocommerce-pagination ul.page-numbers li { margin: 0; }
.woocommerce-pagination .page-numbers,
ul.page-numbers .page-numbers {
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 9px; background: var(--bg3);
  border: 1px solid var(--border); color: var(--text2);
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.woocommerce-pagination .page-numbers:hover { border-color: var(--accent-bright); color: #fff; }
.woocommerce-pagination .page-numbers.current,
ul.page-numbers .page-numbers.current {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* ═══════════════════════════════════════════════════════
   FÓRUM — TÓPICOS (botão download / changelog / imagens)  v1.6.9.7
═══════════════════════════════════════════════════════ */

/* Botão de download destacado */
.ptbr-dl-wrap { display: block; text-align: center; margin: 22px 0; }
.ptbr-dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; border-radius: 12px;
  background: var(--grad-main); color: #fff !important;
  font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 800;
  text-decoration: none; border: none;
  box-shadow: 0 8px 24px rgba(99,102,241,.45);
  transition: transform .15s, box-shadow .15s;
}
.ptbr-dl-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(99,102,241,.6); color: #fff !important; }

/* Rede de segurança: estiliza como botão qualquer link de .zip/CDN
   mesmo que não passe pelo filtro (ex.: KSES do bbPress) */
.post-body a[href$=".zip"], .post-body a[href*="downloads-loja"], .post-body a[href*="/ativo/"],
.bbp-topic-content a[href$=".zip"], .bbp-topic-content a[href*="downloads-loja"], .bbp-topic-content a[href*="/ativo/"],
.bbp-reply-content a[href$=".zip"], .bbp-reply-content a[href*="downloads-loja"], .bbp-reply-content a[href*="/ativo/"],
.entry-content a[href$=".zip"], .entry-content a[href*="downloads-loja"], .entry-content a[href*="/ativo/"] {
  display: inline-block; margin: 10px 0; padding: 13px 30px; border-radius: 12px;
  background: var(--grad-main); color: #fff !important;
  font-weight: 800; text-decoration: none;
  box-shadow: 0 8px 24px rgba(99,102,241,.45);
}

/* Título do changelog em destaque */
.ptbr-changelog-title {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 16px;
  color: var(--accent-bright);
  display: flex; align-items: center; gap: 8px;
  margin: 18px 0 8px;
}

/* Imagens dos tópicos SEMPRE menores e centralizadas */
.post-body img,
.bbp-topic-content img,
.bbp-reply-content img,
.entry-content .bbp-topic-content img,
#bbpress-forums .bbp-topic-content img,
#bbpress-forums .bbp-reply-content img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  max-height: 280px !important;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: 14px auto;
}

/* ═══════════════════════════════════════════════════════
   FÓRUM — PÁGINA DE TÓPICO ESTILO DOWNLOAD (XFRM)  v1.6.9.8
═══════════════════════════════════════════════════════ */
.res-hero {
  display: grid; grid-template-columns: 220px 1fr; gap: 22px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 22px; margin-bottom: 18px;
}
.res-hero__cover { border-radius: 12px; overflow: hidden; background: var(--bg3); align-self: start; }
.res-hero__cover img { width: 100%; height: auto; max-height: 240px; object-fit: cover; display: block; }
.res-hero__title { font-size: 24px; margin-bottom: 12px; }
.res-hero__meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text2); margin-bottom: 18px; }
.res-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.res-badge {
  background: rgba(139,155,255,.16); color: var(--accent-bright);
  border: 1px solid var(--accent-bright); border-radius: 999px;
  padding: 3px 12px; font-size: 12px; font-weight: 800;
}

/* Abas */
.res-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.res-tab {
  background: none; border: none; cursor: pointer;
  padding: 12px 18px; font-size: 14px; font-weight: 700;
  color: var(--text3); border-bottom: 2px solid transparent; transition: all .15s;
}
.res-tab:hover { color: var(--text); }
.res-tab.active { color: var(--accent-bright); border-bottom-color: var(--accent-bright); }
.res-panel { display: none; }
.res-panel.active { display: block; animation: fadeUp .3s ease both; }

/* Linhas de informação na sidebar */
.res-info-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.res-info-row:last-of-type { border-bottom: none; }
.res-info-row span { color: var(--text3); }
.res-info-row strong { color: var(--text); }

/* Alertas (criar tópico) */
.ptbr-alert {
  background: rgba(139,155,255,.10); border: 1px solid var(--border2);
  border-radius: 12px; padding: 14px 16px; font-size: 13px;
  color: var(--text2); margin-bottom: 18px;
}
.ptbr-alert--err { background: rgba(255,82,82,.10); border-color: rgba(255,82,82,.4); color: #ffd5d5; }

@media (max-width: 720px) {
  .res-hero { grid-template-columns: 1fr; }
  .res-hero__cover img { max-height: 200px; }
}

/* ═══════════════════════════════════════════════════════
   FÓRUM TÓPICO — LAYOUT XFRM (Babiato)  v1.6.9.9
═══════════════════════════════════════════════════════ */
.res-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.res-topbar__left { display: flex; align-items: center; gap: 14px; }
.res-topbar__icon {
  width: 52px; height: 52px; border-radius: 10px; background: var(--bg3);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  overflow: hidden; flex-shrink: 0; border: 1px solid var(--border);
}
.res-topbar__icon img { width: 100%; height: 100%; object-fit: cover; }
.res-topbar__title { font-size: 22px; font-weight: 800; line-height: 1.2; }
.res-topbar__ver { color: var(--accent-bright); font-size: 18px; }
.res-topbar__sub { font-size: 13px; color: var(--text2); margin-top: 4px; }
.res-download-btn {
  background: var(--accent); color: #fff !important;
  padding: 12px 30px; border-radius: 8px;
  font-weight: 800; font-size: 14px; letter-spacing: .5px; text-transform: uppercase;
  text-decoration: none; transition: background .15s, transform .15s; white-space: nowrap;
}
.res-download-btn:hover { background: var(--accent-bright); transform: translateY(-1px); color: #fff !important; }

.res-cover { border-radius: 12px; overflow: hidden; margin-bottom: 16px; background: var(--bg3); }
.res-cover img { width: 100%; height: auto; max-height: 220px; object-fit: contain; display: block; }

/* Tabela de histórico */
.res-history { width: 100%; border-collapse: collapse; font-size: 13px; }
.res-history th {
  text-align: left; padding: 14px 18px; background: var(--bg3);
  color: var(--text3); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .6px;
}
.res-history td { padding: 16px 18px; border-top: 1px solid var(--border); color: var(--text2); }

/* Caixa de resposta escura (estilo imagem 6) */
.ptbr-reply-box {
  margin-top: 22px; background: var(--bg2);
  border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 16px;
}
.ptbr-reply-head { display: flex; gap: 14px; align-items: flex-start; }
.ptbr-reply-avatar {
  width: 56px; height: 56px; border-radius: 8px; background: var(--bg4);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; overflow: hidden;
}
.ptbr-reply-toolbar {
  flex: 1; display: flex; gap: 4px; flex-wrap: wrap;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 8px 8px 0 0;
  padding: 8px 10px;
}
.ptbr-reply-toolbar button {
  min-width: 30px; height: 28px; padding: 0 8px;
  background: transparent; border: none; color: var(--text2);
  border-radius: 6px; cursor: pointer; font-size: 13px; transition: background .15s, color .15s;
}
.ptbr-reply-toolbar button:hover { background: var(--bg4); color: var(--text); }
.ptbr-reply-text {
  width: 100%; min-height: 140px; margin-left: 70px; max-width: calc(100% - 70px);
  padding: 14px 16px; border-radius: 0 0 8px 8px;
  background: var(--bg3); border: 1px solid var(--border); border-top: none;
  color: var(--text); font-size: 14px; line-height: 1.6; resize: vertical;
}
.ptbr-reply-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; margin-left: 70px; gap: 10px;
}
.ptbr-post-reply {
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  padding: 11px 28px; border-radius: 8px; font-weight: 800; font-size: 13px;
  letter-spacing: .5px; text-transform: uppercase; transition: background .15s;
}
.ptbr-post-reply:hover { background: var(--accent-bright); }

/* Widget últimos posts */
.latest-post-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 16px; text-decoration: none; transition: background .15s; }
.latest-post-row:hover { background: var(--bg3); }
.latest-post-ico { font-size: 16px; flex-shrink: 0; }
.latest-post-info { min-width: 0; display: flex; flex-direction: column; }
.latest-post-title { font-size: 13px; color: var(--text); font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.latest-post-meta { font-size: 11px; color: var(--text3); margin-top: 2px; }

@media (max-width: 720px) {
  .ptbr-reply-text, .ptbr-reply-foot { margin-left: 0; max-width: 100%; }
  .res-topbar__title { font-size: 18px; }
}

/* Botão de download travado (restrito) */
.res-download-btn--lock {
  background: rgba(251,191,36,.14) !important; color: var(--gold) !important;
  border: 1px solid rgba(251,191,36,.45);
}
.res-download-btn--lock:hover { background: rgba(251,191,36,.22) !important; color: var(--gold) !important; }

/* Reforço: impede que conteúdo largo estoure o grid do tópico */
.content-area { min-width: 0; }
.res-panel { min-width: 0; }
.res-panel .post-body { overflow-wrap: anywhere; word-break: break-word; }
.res-panel .post-body img { max-width: 100% !important; height: auto !important; }

/* ═══════════════════════════════════════════════════════
   FÓRUM ÍNDICE — DOAÇÃO + FEED/POPULARES (Babiato)  v1.6.9.12
═══════════════════════════════════════════════════════ */
.forum-donate-box {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, rgba(255,221,0,.10), rgba(139,92,246,.12));
  border: 1px solid rgba(255,221,0,.30); border-radius: var(--radius-lg);
  padding: 16px 20px; margin-bottom: 18px;
}
.forum-donate-box__icon { font-size: 34px; flex-shrink: 0; }
.forum-donate-box__txt { flex: 1; min-width: 0; }
.forum-donate-box__txt strong { font-family: 'Syne',sans-serif; font-size: 16px; display: block; margin-bottom: 3px; }
.forum-donate-box__txt p { font-size: 13px; color: var(--text2); margin: 0; line-height: 1.55; }
.forum-donate-box__btn {
  flex-shrink: 0; background: var(--grad-gold); color: #1a1300 !important;
  font-weight: 800; padding: 12px 24px; border-radius: 10px; text-decoration: none;
  white-space: nowrap; box-shadow: 0 6px 18px rgba(255,221,0,.25); transition: transform .15s;
}
.forum-donate-box__btn:hover { transform: translateY(-2px); color: #1a1300 !important; }

.forum-top-grid { display: grid; grid-template-columns: 1fr 260px; gap: 18px; align-items: start; margin-bottom: 24px; }
.forum-top-main { min-width: 0; }
.forum-top-main .forum-feed-card { margin-bottom: 0; }
.forum-pop-head { padding: 13px 16px; background: var(--bg3); border-bottom: 1px solid var(--border); font-family: 'Syne',sans-serif; font-weight: 800; font-size: 13px; color: var(--accent-bright); }
.forum-pop-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); text-decoration: none; transition: background .15s; }
.forum-pop-row:last-child { border-bottom: none; }
.forum-pop-row:hover { background: var(--bg3); }
.forum-pop-name { font-size: 13px; color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-pop-count { font-size: 12px; font-weight: 800; color: var(--accent-bright); background: var(--bg4); border-radius: 999px; padding: 2px 10px; flex-shrink: 0; }
.forum-feed-card .feed-row .feed-title { color: var(--text); font-weight: 600; }
.forum-feed-card .feed-row:hover .feed-title { color: var(--accent-bright); }

@media (max-width: 900px) { .forum-top-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .forum-donate-box { flex-direction: column; text-align: center; } }

/* ═══════════════════════════════════════════════════════
   FÓRUM — AÇÕES DE POST / ADMIN / AVALIAÇÃO  v1.6.9.13
═══════════════════════════════════════════════════════ */
.post-foot {
  display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border);
}
.pf-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text3);
  border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.pf-btn:hover { border-color: var(--accent-bright); color: var(--text); }
.pf-btn.liked { color: var(--accent-bright); border-color: var(--accent-bright); background: rgba(139,155,255,.12); }
.pf-reply { color: var(--accent-bright); border-color: var(--accent-bright); }

.ptbr-admin-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(255,82,82,.06); border: 1px solid rgba(255,82,82,.25);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 14px;
}
.ptbr-admin-bar__tag { font-size: 11px; font-weight: 800; color: var(--red); background: rgba(255,82,82,.14); border-radius: 6px; padding: 3px 8px; }

/* Horário do feed mais visível (Babiato) */
.forum-feed-card .feed-time { font-size: 11px; color: var(--text2); min-width: 96px; text-align: right; }
#star-pick span { transition: opacity .12s; }

/* ═══════════════════════════════════════════════════════
   WIDGET DE FEED DO FÓRUM (estilo Babiato)  v1.6.9.14
   Usado na home e em /forum.
═══════════════════════════════════════════════════════ */
.ptbr-ffw {
  display: grid; grid-template-columns: 1fr 250px; gap: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px;
}
.ptbr-ffw-main { min-width: 0; border-right: 1px solid var(--border); }
.ptbr-ffw-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--border); background: var(--bg3); }
.ptbr-ffw-tab {
  background: none; border: none; cursor: pointer;
  padding: 12px 16px; font-size: 11.5px; font-weight: 800; letter-spacing: .03em;
  color: var(--text3); border-bottom: 2px solid transparent; transition: all .15s;
}
.ptbr-ffw-tab:hover { color: var(--text); }
.ptbr-ffw-tab.active { color: #fff; background: var(--accent); }
.ptbr-ffw-refresh { margin-left:auto; background:none; border:none; color:var(--text3); font-size:18px; cursor:pointer; padding:0 14px; transition:color .2s; }
.ptbr-ffw-refresh:hover { color:var(--accent); }

.ptbr-ffw-row {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 14px; border-bottom: 1px solid var(--border);
  text-decoration: none; transition: background .12s;
}
.ptbr-ffw-row:last-of-type { border-bottom: none; }
.ptbr-ffw-row:hover { background: rgba(139,155,255,.07); }
.ptbr-ffw-av {
  width: 30px; height: 30px; border-radius: 6px; overflow: hidden; flex-shrink: 0;
  background: var(--bg4); display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.ptbr-ffw-av img { width: 100%; height: 100%; object-fit: cover; }
.ptbr-ffw-title {
  flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--cyan);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ptbr-ffw-row:hover .ptbr-ffw-title { color: #fff; }
.ptbr-ffw-time { font-size: 11px; color: var(--text3); white-space: nowrap; flex-shrink: 0; min-width: 100px; text-align: right; }
.ptbr-ffw-empty { padding: 26px; text-align: center; color: var(--text3); font-size: 13px; }
.ptbr-ffw-empty a { color: var(--accent-bright); }
.ptbr-ffw-foot { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; background: var(--bg3); font-size: 11px; }
.ptbr-ffw-foot a { color: var(--accent-bright); text-decoration: none; }
.ptbr-ffw-foot span { color: var(--text3); }

.ptbr-ffw-pop { background: var(--bg2); }
.ptbr-ffw-pop-head { padding: 12px 14px; background: var(--bg3); border-bottom: 1px solid var(--border); font-family: 'Syne',sans-serif; font-weight: 800; font-size: 12px; color: var(--accent-bright); }
.ptbr-ffw-pop-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--border); text-decoration: none; }
.ptbr-ffw-pop-row:last-child { border-bottom: none; }
.ptbr-ffw-pop-row span { font-size: 12px; color: var(--cyan); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptbr-ffw-pop-row strong { font-size: 11px; color: var(--text2); flex-shrink: 0; font-weight: 700; }
.ptbr-ffw-pop-row:hover span { color: #fff; }

@media (max-width: 760px) {
  .ptbr-ffw { grid-template-columns: 1fr; }
  .ptbr-ffw-main { border-right: none; }
  .ptbr-ffw-time { min-width: 70px; }
}
