/* =====================================================================
   Tg Esports — camada visual do Fórum Tecnogaming (phpBB 3.3 / prosilver)
   Paleta e tipografia espelham o portal (página Tg Esports)
   ===================================================================== */

:root {
	--tg-text: #0f1a33;
	--tg-title: #0c2149;
	--tg-text-dim: #5c6b8a;
	--tg-line: #e3e8f5;
	--tg-bg: #f5f7fc;
	--tg-purple: #7c3aed;
	--tg-purple-dark: #4c1d95;
	--tg-purple-deep: #170a3a;
	--tg-purple-tint: #f3ebff;
	--tg-purple-soft: #f6f2ff;
	--tg-blue: #1a56ff;
	--tg-green: #16a34a;
	--tg-red: #e11d48;
	--tg-amber: #b45309;
	--tg-grad-hero: linear-gradient(115deg, #170a3a 0%, #2e1170 55%, #4c1d95 100%);
	--tg-grad-box: linear-gradient(120deg, #7c3aed, #4c1d95);
	--tg-shadow: 0 8px 24px rgba(12, 33, 73, .06);
	--tg-radius: 16px;
	--tg-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
html, body {
	background: var(--tg-bg);
	color: var(--tg-text);
}
body {
	padding: 0;
	font-family: var(--tg-font);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
li.header dt, li.header dd,
.postbody h3, .content, .signature,
input, select, textarea, button, .button {
	font-family: var(--tg-font);
}
a { color: var(--tg-purple); }
a:hover { color: var(--tg-purple-dark); text-decoration: none; }

.tg-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}
.tg-dot {
	display: inline-block;
	width: 10px; height: 10px;
	border-radius: 50%;
	background: var(--tg-purple);
	flex-shrink: 0;
}

/* ---------- Área do fórum (wrap do prosilver) ---------- */
.wrap {
	max-width: 1240px;
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 22px 20px 10px;
	box-sizing: border-box;
}
@media (max-width: 1220px) { .wrap { margin: 0 auto; } }

/* O cabeçalho original vira o nosso — esconde o headerbar do prosilver */
.headerbar { display: none; }

/* ---------- Cabeçalho do portal ---------- */
.tg-portal { background: #fff; }
.tg-portal-top { border-bottom: 1px solid var(--tg-line); }
.tg-portal-top-in {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; min-height: 74px;
}
.tg-portal-logo img { display: block; height: 34px; width: auto; }
.tg-portal-actions { display: flex; align-items: center; gap: 18px; }
.tg-portal-back {
	font-size: 13px; font-weight: 600; color: var(--tg-text-dim);
	display: inline-flex; align-items: center; gap: 6px;
}
.tg-portal-back:hover { color: var(--tg-blue); }
.tg-social { display: flex; gap: 6px; }
.tg-social a {
	width: 32px; height: 32px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--tg-bg); color: var(--tg-title); font-size: 15px;
	transition: background .15s, color .15s;
}
.tg-social a:hover { background: var(--tg-purple); color: #fff; }

.tg-portal-menu { border-bottom: 1px solid var(--tg-line); }
.tg-portal-menu-in {
	display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
}
.tg-portal-menu-in::-webkit-scrollbar { display: none; }
.tg-portal-menu a {
	position: relative; flex-shrink: 0;
	padding: 14px 13px; white-space: nowrap;
	font-size: 14.5px; font-weight: 600; color: var(--tg-text);
}
.tg-portal-menu a::after {
	content: ""; position: absolute; left: 13px; right: 13px; bottom: 7px;
	height: 3px; border-radius: 3px; background: var(--c, var(--tg-purple));
	transform: scaleX(0); transform-origin: left center; transition: transform .2s;
}
.tg-portal-menu a:hover { color: var(--c, var(--tg-blue)); }
.tg-portal-menu a:hover::after,
.tg-portal-menu a.on::after { transform: scaleX(1); }
.tg-portal-menu a.on { color: var(--c, var(--tg-purple)); }

/* ---------- Barra do fórum (estilo nav Tg Esports) ---------- */
.tg-fnav {
	position: sticky; top: 0; z-index: 60;
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: saturate(1.4) blur(8px);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--tg-line);
	transition: box-shadow .2s;
}
.tg-fnav.is-stuck { box-shadow: 0 6px 18px rgba(23, 10, 58, .08); }
.tg-fnav-in { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.tg-fnav-logo { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tg-fnav-logo img { height: 28px; width: auto; display: block; }
.tg-fnav-badge {
	font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
	color: var(--tg-purple); background: var(--tg-purple-tint);
	padding: 4px 9px; border-radius: 6px;
}
.tg-fnav-tabs {
	display: flex; gap: 4px; flex: 1 1 auto; min-width: 0;
	overflow-x: auto; scrollbar-width: none;
}
.tg-fnav-tabs::-webkit-scrollbar { display: none; }
.tg-tab {
	display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
	padding: 8px 13px; border-radius: 10px;
	font-size: 13.5px; font-weight: 600; color: var(--tg-text-dim) !important;
	transition: background .15s, color .15s;
}
.tg-tab .icon { font-size: 14px; }
.tg-tab:hover { background: var(--tg-purple-soft); color: var(--tg-purple) !important; }
.tg-tab.on { background: #efe7ff; color: var(--tg-purple) !important; }

.tg-fnav-search {
	display: flex; align-items: center; flex-shrink: 0;
	background: var(--tg-bg); border: 1px solid var(--tg-line);
	border-radius: 10px; padding: 0 4px 0 12px;
	transition: border-color .15s, box-shadow .15s;
}
.tg-fnav-search:focus-within { border-color: var(--tg-purple); box-shadow: 0 0 0 3px rgba(124, 58, 237, .12); }
.tg-fnav-search input {
	border: 0; background: transparent; outline: none;
	font: 500 13.5px var(--tg-font); color: var(--tg-text);
	width: 180px; padding: 10px 0;
}
.tg-fnav-search button {
	border: 0; background: transparent; cursor: pointer;
	color: var(--tg-text-dim); font-size: 15px; padding: 6px 8px;
}
.tg-fnav-search button:hover { color: var(--tg-purple); }

/* ---------- Botões próprios ---------- */
.tg-btn {
	display: inline-flex; align-items: center; gap: 8px;
	font: 800 13px var(--tg-font); letter-spacing: .01em;
	padding: 11px 18px; border-radius: 10px; white-space: nowrap;
	text-decoration: none !important; transition: transform .15s, box-shadow .15s, background .15s;
}
.tg-btn:hover { transform: translateY(-1px); }
.tg-btn-primary { background: var(--tg-purple); color: #fff !important; box-shadow: 0 6px 16px rgba(124, 58, 237, .3); }
.tg-btn-primary:hover { background: #6d28d9; }
.tg-btn-white { background: #fff; color: var(--tg-purple-dark) !important; }
.tg-btn-ghost { background: rgba(255, 255, 255, .1); color: #fff !important; border: 1px solid rgba(255, 255, 255, .35); }
.tg-btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.tg-fnav-cta { flex-shrink: 0; }

/* ---------- Hero da página inicial ---------- */
.tg-hero {
	position: relative; overflow: hidden;
	display: flex; align-items: center; justify-content: space-between; gap: 28px;
	background: var(--tg-grad-hero); color: #fff;
	border-radius: 20px; padding: 34px 36px; margin: 4px 0 26px;
	box-shadow: 0 14px 34px rgba(23, 10, 58, .22);
}
.tg-hero::after {
	content: ""; position: absolute; right: -80px; top: -120px;
	width: 360px; height: 360px; border-radius: 50%;
	background: radial-gradient(circle, rgba(167, 139, 250, .35), transparent 70%);
	pointer-events: none;
}
.tg-hero-txt { position: relative; z-index: 1; max-width: 640px; }
.tg-kicker {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
	color: #c4b5fd;
}
.tg-kicker .tg-dot { background: #a78bfa; box-shadow: 0 0 0 4px rgba(167, 139, 250, .25); }
.tg-hero-title {
	font-size: 30px; line-height: 1.2; font-weight: 800; color: #fff;
	margin: 10px 0 8px; padding: 0; border: 0; text-transform: none;
}
.tg-hero-sub { font-size: 15px; line-height: 1.55; color: #ddd6fe; margin: 0 0 20px; }
.tg-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.tg-hero-stats { position: relative; z-index: 1; display: flex; gap: 12px; flex-shrink: 0; }
.tg-stat {
	min-width: 108px; text-align: center;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 14px; padding: 14px 12px;
	font-size: 11.5px; font-weight: 600; color: #ddd6fe; text-transform: uppercase; letter-spacing: .04em;
}
.tg-stat .icon { display: block; font-size: 16px; color: #a78bfa; margin-bottom: 6px; }
.tg-stat span { display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; }
.tg-stat strong { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: 0; text-transform: none; }

/* ---------- Navbar do prosilver (atalhos, notificações, usuário, breadcrumbs) ---------- */
.navbar {
	background: #fff !important;
	border: 1px solid var(--tg-line);
	border-radius: 14px;
	padding: 4px 14px;
	box-shadow: var(--tg-shadow);
}
#page-header { margin-bottom: 16px; }
.navbar ul.linklist > li { font-size: 13px; }
.navbar ul.linklist > li > a,
.navbar ul.linklist > li > a span { color: var(--tg-text-dim); font-weight: 600; }
.navbar ul.linklist > li > a:hover,
.navbar ul.linklist > li > a:hover span { color: var(--tg-purple); }
ul.linklist { border-top-color: var(--tg-line) !important; }
ul.linklist.bulletin > li:before, ul.linklist.bulletin > li:first-child:before { color: var(--tg-line); }
.navbar .icon, .navbar .icon-gray { color: var(--tg-text-dim); }
.badge { background: var(--tg-red); border-radius: 20px; font-weight: 700; }

.breadcrumbs .crumb { font-weight: 700; font-size: 13px; }
.breadcrumbs .crumb a { color: var(--tg-title); }
.breadcrumbs .crumb a:hover { color: var(--tg-purple); }
.breadcrumbs .crumb:before { color: var(--tg-text-dim); }
.breadcrumbs .icon { color: var(--tg-purple); }

/* Dropdowns */
.dropdown .dropdown-contents {
	border: 1px solid var(--tg-line); border-radius: 12px;
	box-shadow: 0 14px 34px rgba(12, 33, 73, .14);
	padding: 6px;
}
.dropdown li { border-color: var(--tg-line); }
.dropdown-contents a { border-radius: 8px; padding: 6px 8px; }
.dropdown-contents a:hover { background: var(--tg-purple-soft); }
.dropdown .pointer, .dropdown .pointer-inner { border-color: var(--tg-line) transparent; }
.dropdown-extended .header, .dropdown-extended .footer { background: var(--tg-purple-soft); color: var(--tg-title); font-family: var(--tg-font); }

/* ---------- Títulos ---------- */
h2, .forum-title, .topic-title, h2.solo {
	color: var(--tg-title); font-weight: 800; letter-spacing: -.01em;
}
h2.forum-title, h2.topic-title { font-size: 26px; line-height: 1.25; margin-bottom: 10px; }
h2.forum-title a, h2.topic-title a, h2 a { color: var(--tg-title); }
h2.forum-title a:hover, h2.topic-title a:hover, h2 a:hover { color: var(--tg-purple); }
h3 { color: var(--tg-title); border-bottom-color: var(--tg-line); font-weight: 700; text-transform: none; font-size: 15px; }
p.time, .page-body > p.time, .responsive-center.time { color: var(--tg-text-dim); font-size: 12.5px; }

/* ---------- Listas de fóruns e tópicos ---------- */
.forabg, .forumbg {
	background: var(--tg-grad-box) !important;
	border-radius: var(--tg-radius);
	padding: 0;
	margin-bottom: 22px;
	overflow: hidden;
	box-shadow: 0 10px 26px rgba(76, 29, 149, .14);
}
.forabg .inner, .forumbg .inner { border-radius: 0; }
ul.topiclist li.header { padding: 6px 18px; }
li.header dt, li.header dd {
	color: #fff; font-family: var(--tg-font);
	font-size: 12px; font-weight: 700; letter-spacing: .08em;
}
li.header dt .list-inner a, .forabg .header a, .forumbg .header a { color: #fff; font-size: 14px; letter-spacing: .02em; }
.forabg .header a:hover, .forumbg .header a:hover { color: #ddd6fe; }

ul.topiclist.forums, ul.topiclist.topics,
ul.topiclist.cplist, ul.topiclist.missing-column { background: #fff; }
ul.topiclist li.row {
	background: #fff;
	border-top: 1px solid var(--tg-line);
	border-bottom: 0;
	padding: 6px 10px;
	transition: background .15s;
}
ul.topiclist li.row:hover { background: #faf7ff; }
ul.topiclist li.row.sticky { background: #fffaf0; }
ul.topiclist li.row.announce, ul.topiclist li.row.global-announce { background: #f6f2ff; }
li.row strong { font-weight: 700; }

/* Ícones de pasta → bolinhas/selos no padrão Tg */
dl.row-item { background-image: none !important; }
dl.row-item dt .list-inner { padding-left: 58px; }
ul.topiclist li.row dl.row-item::before {
	content: "\f086"; /* comments */
	font-family: FontAwesome; font-size: 17px; line-height: 40px; text-align: center;
	position: absolute; left: 6px; top: 50%; margin-top: -20px;
	width: 40px; height: 40px; border-radius: 12px;
	background: var(--tg-purple-tint); color: var(--tg-purple);
	pointer-events: none;
}
ul.topiclist li.row dl.row-item[class^="topic_"]::before,
ul.topiclist li.row dl.row-item[class*=" topic_"]::before { content: "\f0e5"; }        /* comment-o */
ul.topiclist li.row dl.row-item[class*="hot"]::before { content: "\f06d"; }           /* fire */
ul.topiclist li.row dl.row-item[class*="sticky_"]::before { content: "\f08d"; }       /* thumb-tack */
ul.topiclist li.row dl.row-item[class*="announce_"]::before,
ul.topiclist li.row dl.row-item[class*="global_"]::before { content: "\f0a1"; }      /* bullhorn */
ul.topiclist li.row dl.row-item[class*="subforum"]::before { content: "\f07c"; }      /* folder-open */
ul.topiclist li.row dl.row-item[class*="locked"]::before { content: "\f023"; }        /* lock */
ul.topiclist li.row dl.row-item.forum_link::before { content: "\f0c1"; }              /* link */
ul.topiclist li.row dl.row-item.topic_moved::before { content: "\f064"; }             /* share */
ul.topiclist li.row dl.row-item[class*="pm_"]::before { content: "\f0e0"; }           /* envelope */
/* Não lidos: selo cheio */
ul.topiclist li.row dl.row-item[class*="_unread"]::before {
	background: var(--tg-grad-box); color: #fff;
	box-shadow: 0 4px 12px rgba(124, 58, 237, .35);
}
ul.topiclist li.row dl.row-item[class*="locked"]::before { background: #eef1f7; color: var(--tg-text-dim); box-shadow: none; }
ul.topiclist li.row dl.row-item[class*="sticky_"]::before { background: #fff1db; color: var(--tg-amber); }
ul.topiclist li.row dl.row-item[class*="sticky_unread"]::before { background: #f59e0b; color: #fff; }
a.row-item-link { left: 6px !important; margin-left: 0 !important; width: 40px !important; height: 40px !important; margin-top: -20px !important; z-index: 2; }

a.forumtitle, a.topictitle {
	font-family: var(--tg-font); font-size: 15.5px; font-weight: 700;
	color: var(--tg-title); line-height: 1.35;
}
a.forumtitle:hover, a.topictitle:hover { color: var(--tg-purple); }
.row .list-inner { font-size: 12.5px; color: var(--tg-text-dim); line-height: 1.5; }
.row .list-inner .forum-description,
.row .list-inner br + * { color: var(--tg-text-dim); }
.subforum { font-weight: 600; }
dd.posts, dd.topics, dd.views {
	font-size: 14px; font-weight: 700; color: var(--tg-title);
}
dd.posts dfn, dd.topics dfn, dd.views dfn { color: var(--tg-text-dim); }
dd.lastpost { font-size: 12px; color: var(--tg-text-dim); }
dd.lastpost > span { padding-left: 8px; }
dd.lastpost a.lastsubject { font-weight: 700; color: var(--tg-title); }
dd.lastpost a.lastsubject:hover { color: var(--tg-purple); }
dl.row-item dt, dl.row-item dd { border-color: var(--tg-line) !important; }
.topic-poster, .responsive-show { color: var(--tg-text-dim); }

/* Coluna "Mensagens/Tópicos" mais limpa */
li.header dd.posts, li.header dd.topics, li.header dd.views, li.header dd.lastpost { opacity: .9; }

/* Paginação dentro da linha do tópico */
.row .pagination li a, .row .pagination li span { font-size: 11px; padding: 1px 6px; }

/* ---------- Barras de ação, botões e paginação ---------- */
.action-bar { margin: 12px 0 16px; font-size: 12.5px; }
.button {
	font-family: var(--tg-font); font-size: 13px; font-weight: 600;
	color: var(--tg-title);
	background: #fff; background-image: none;
	border: 1px solid var(--tg-line); border-radius: 10px;
	box-shadow: none; padding: 5px 12px; line-height: 1.6;
	transition: border-color .15s, color .15s, background .15s;
}
.button:hover, .button:focus {
	background: var(--tg-purple-soft); border-color: #d8c7fd;
	color: var(--tg-purple); text-shadow: none;
}
.button .icon, .button:hover .icon { color: inherit; }
.button-secondary { color: var(--tg-text-dim); }
.button-search, .button-search-end { border-radius: 10px; }

/* Botão principal: "Novo tópico" / "Responder" (primeiro da barra superior) */
.action-bar.bar-top > a.button:first-child,
.action-bar.bar-bottom > a.button:first-child,
input.button1, button.button1, a.button1 {
	background: var(--tg-purple); border-color: var(--tg-purple);
	color: #fff !important; font-weight: 800;
	box-shadow: 0 6px 16px rgba(124, 58, 237, .28);
}
.action-bar.bar-top > a.button:first-child:hover,
.action-bar.bar-bottom > a.button:first-child:hover,
input.button1:hover, button.button1:hover, a.button1:hover {
	background: #6d28d9; border-color: #6d28d9; color: #fff !important;
}
.action-bar > a.button:first-child .icon { color: #fff; }

input.button1, input.button2, button.button1, button.button2, a.button1, a.button2 {
	font-family: var(--tg-font); font-size: 13px; font-weight: 700;
	border-radius: 10px; padding: 7px 16px; background-image: none;
}
input.button2, button.button2, a.button2 {
	background: #fff; border: 1px solid var(--tg-line); color: var(--tg-title);
}
input.button2:hover, button.button2:hover, a.button2:hover {
	background: var(--tg-purple-soft); border-color: #d8c7fd; color: var(--tg-purple);
}

.pagination { font-size: 12.5px; }
.pagination li a, .pagination li span {
	border-radius: 30px; border: 1px solid var(--tg-line);
	background: #fff; color: var(--tg-text-dim);
	font-weight: 700; padding: 3px 10px; box-shadow: none; background-image: none;
}
.pagination li a:hover { background: var(--tg-purple-tint); border-color: var(--tg-purple-tint); color: var(--tg-purple); }
.pagination li.active span { background: var(--tg-purple); border-color: var(--tg-purple); color: #fff; }
.pagination li.ellipsis span { border: 0; background: transparent; padding: 3px 4px; }

a.mark-read, .mark-read { font-weight: 600; font-size: 12.5px; }

/* ---------- Painéis e cartões ---------- */
.bg1, .bg2, .bg3 { background-color: #fff; }
.panel, .post, .stat-block, form.headerspace, .content-box, .rules, fieldset.polls {
	border-radius: var(--tg-radius);
}
.panel {
	background: #fff; border: 1px solid var(--tg-line);
	box-shadow: var(--tg-shadow); color: var(--tg-text);
}
.panel h2, .panel h3, .content h2 { color: var(--tg-title); border-bottom-color: var(--tg-line); }
.rules { background: #fff5f5; border: 1px solid #ffd5dc; color: #9f1239; }

/* Blocos de estatística do índice */
.stat-block {
	background: #fff; border: 1px solid var(--tg-line);
	box-shadow: var(--tg-shadow);
	padding: 16px 20px; margin-bottom: 16px;
	color: var(--tg-text-dim); font-size: 13px; line-height: 1.6;
}
.stat-block h3 {
	display: flex; align-items: center; gap: 9px;
	font-size: 15px; margin: 0 0 10px; padding-bottom: 10px;
	border-bottom: 2px solid var(--tg-line);
}
.stat-block h3::before {
	content: ""; width: 10px; height: 10px; border-radius: 50%;
	background: var(--tg-purple); flex-shrink: 0;
}
.stat-block h3 a { color: var(--tg-title); }
.stat-block p { margin: 0; }
.stat-block em { color: var(--tg-text-dim); }

/* Login rápido do índice */
form.headerspace {
	background: #fff; border: 1px solid var(--tg-line); box-shadow: var(--tg-shadow);
	padding: 16px 20px; margin: 10px 0 18px;
}
form.headerspace h3 { border: 0; margin: 0 0 10px; font-size: 15px; }
fieldset.quick-login { font-size: 13px; }
fieldset.quick-login input.inputbox { width: 15%; min-width: 130px; background: #fff; }

/* ---------- Posts ---------- */
.post {
	background: #fff !important;
	border: 1px solid var(--tg-line);
	box-shadow: var(--tg-shadow);
	padding: 18px 20px;
	margin-bottom: 16px;
}
.post.reported { background: #fff1f2 !important; border-color: #fecdd3; }
.post .inner { border: 0; }
.postprofile {
	border-left: 1px solid var(--tg-line);
	color: var(--tg-text-dim); font-size: 12px;
	min-height: 80px;
}
.postprofile .avatar img, .avatar-container img, .avatar img {
	border-radius: 14px; box-shadow: 0 4px 12px rgba(12, 33, 73, .12);
}
.postprofile dd, .postprofile dt { line-height: 1.6; }
.postprofile dt a.username, .postprofile dt a.username-coloured,
.postprofile dt .username, .postprofile dt .username-coloured { font-weight: 800; font-size: 14px; }
.postprofile .profile-rank {
	display: inline-block; margin: 4px 0;
	background: var(--tg-purple-tint); color: var(--tg-purple);
	font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
	padding: 3px 9px; border-radius: 6px;
}
.postbody h3, .postbody h3 a, .postbody h3.first a {
	font-family: var(--tg-font); font-size: 17px; font-weight: 700; color: var(--tg-title);
}
.postbody h3 a:hover { color: var(--tg-purple); }
.postbody .author { color: var(--tg-text-dim); font-size: 12px; border-bottom: 1px solid var(--tg-line); padding-bottom: 8px; }
.content {
	font-family: var(--tg-font); font-size: 15px; line-height: 1.75; color: #1f2a44;
}
.content a.postlink { color: var(--tg-blue); border-bottom: 1px solid rgba(26, 86, 255, .3); }
.content a.postlink:hover { color: var(--tg-purple); border-bottom-color: var(--tg-purple); }
.signature { border-top: 1px dashed var(--tg-line); color: var(--tg-text-dim); font-size: 12.5px; }
.post-buttons .button { padding: 3px 8px; }
.has-profile .post-buttons > li > .button { border-radius: 8px; }

blockquote {
	background: var(--tg-purple-soft); border: 0; border-left: 4px solid var(--tg-purple);
	border-radius: 10px; padding: 10px 14px; margin: 12px 1px 12px 16px;
	font-size: 14px;
}
blockquote blockquote { background: #fff; }
blockquote cite { color: var(--tg-purple-dark); font-weight: 700; font-style: normal; }
.codebox { background: #0f1a33; border: 0; border-radius: 12px; overflow: hidden; }
.codebox p { background: #1b2748; color: #c7d2fe; border: 0; font-family: var(--tg-font); font-weight: 600; padding: 6px 12px; }
.codebox p a { color: #a78bfa; }
.codebox code { color: #e2e8f0; background: transparent; font-size: 13px; line-height: 1.6; padding: 10px 14px; }

.attachbox { background: var(--tg-bg); border: 1px dashed var(--tg-line); border-radius: 12px; }

/* Enquetes */
fieldset.polls dd div { background: var(--tg-grad-box); border-radius: 6px; color: #fff; font-weight: 700; }
fieldset.polls dl { border-top-color: var(--tg-line); }

/* Respostas não lidas, avisos */
.unreadpost .postbody h3 a, .unreadpost .postbody h3 a:hover { color: var(--tg-purple); }
.error { color: var(--tg-red); }
.successbox, .errorbox, .warningbox {
	border-radius: 12px; font-family: var(--tg-font);
}
.successbox { background: #ecfdf3; border-color: #bbf7d0; color: #14532d; }
.errorbox { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }

/* ---------- Formulários ---------- */
.inputbox, select, textarea, input.inputbox {
	border: 1px solid var(--tg-line); border-radius: 10px;
	background: #fff; color: var(--tg-text);
	padding: 7px 11px; font-family: var(--tg-font); font-size: 13.5px;
	transition: border-color .15s, box-shadow .15s;
}
.inputbox:hover, select:hover, textarea:hover { border-color: #d0c2f7; }
.inputbox:focus, select:focus, textarea:focus, input.inputbox:focus {
	border-color: var(--tg-purple); box-shadow: 0 0 0 3px rgba(124, 58, 237, .12); outline: none;
}
textarea#message, #message-box textarea { font-size: 14.5px; line-height: 1.6; }
fieldset { font-family: var(--tg-font); }
fieldset dl:hover dt label { color: var(--tg-purple); }
label { color: var(--tg-title); }
dd label { color: var(--tg-text); }
#format-buttons .button { padding: 4px 7px; }
#smiley-box { font-family: var(--tg-font); }

/* Abas (UCP/MCP, posting) */
.tabs .tab > a {
	font-family: var(--tg-font); font-weight: 700; font-size: 13px;
	background: #fff; border: 1px solid var(--tg-line); border-bottom: 0;
	border-radius: 10px 10px 0 0; color: var(--tg-text-dim);
}
.tabs .tab > a:hover { color: var(--tg-purple); background: var(--tg-purple-soft); }
.tabs .activetab > a, .tabs .activetab > a:hover {
	background: var(--tg-purple); border-color: var(--tg-purple); color: #fff;
}
.tabs .activetab > a .icon { color: #fff; }

/* Menu lateral do Painel de Controle do Usuário */
.cp-menu { font-family: var(--tg-font); }
#navigation a {
	background: #fff; border-radius: 10px; color: var(--tg-title);
	font-weight: 600; border: 1px solid transparent;
}
#navigation a:hover { background: var(--tg-purple-soft); color: var(--tg-purple); }
#navigation #active-subsection a { background: var(--tg-purple-tint); color: var(--tg-purple); border-color: #e0d1fd; }
.cp-mini { background: #fff; border-radius: 12px; border: 1px solid var(--tg-line); }

/* Tabelas (membros, equipe) */
table.table1 thead th {
	background: var(--tg-purple-dark); color: #fff;
	font-family: var(--tg-font); font-weight: 700; letter-spacing: .04em;
}
table.table1 tbody tr { border-color: var(--tg-line); }
table.table1 tbody tr:hover, table.table1 tbody tr.hover { background: #faf7ff; }
table.table1 tbody td { border-color: var(--tg-line); }
.forumbg-table > .inner { margin: 0; }

/* Online */
.online { position: relative; }
.postprofile .online::after, .online .postprofile::after { display: none; }

/* Jumpbox e caixas de ação */
.jumpbox .dropdown-trigger.button { font-weight: 700; }

/* ---------- Rodapé do prosilver (linha compacta) ---------- */
.page-footer { margin-top: 18px; }
.page-footer .navbar { box-shadow: none; }
/* O crédito do phpBB vai para o rodapé Tecnogaming; o resto (link do ACP etc.) fica aqui */
.page-footer .copyright { color: var(--tg-text-dim); font-size: 12px; padding: 10px 0 0; }
.page-footer .copyright .footer-row:first-child { display: none; }
.page-footer .copyright a { color: var(--tg-text-dim); font-weight: 600; }
.page-footer .copyright a:hover { color: var(--tg-purple); }

/* ---------- Rodapé Tecnogaming ---------- */
.tg-footer {
	background: #0b1530; color: #aab6d3;
	font-family: var(--tg-font);
	margin-top: 40px;
	border-top: 4px solid var(--tg-purple);
}
.tg-footer-grid {
	display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
	padding-top: 44px; padding-bottom: 36px;
}
.tg-footer-brand img { height: 32px; width: auto; display: block; margin-bottom: 14px; }
.tg-footer-brand p { font-size: 13.5px; line-height: 1.65; margin: 0 0 16px; max-width: 340px; }
.tg-footer .tg-social a { background: rgba(255, 255, 255, .08); color: #fff; }
.tg-footer .tg-social a:hover { background: var(--tg-purple); }
.tg-footer h4 {
	display: flex; align-items: center; gap: 8px;
	font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
	color: #fff; margin: 4px 0 14px;
}
.tg-footer h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #a78bfa; }
.tg-footer-col a {
	display: block; font-size: 13.5px; font-weight: 500;
	color: #aab6d3; padding: 4px 0;
}
.tg-footer-col a:hover { color: #fff; }
.tg-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.tg-footer-bottom-in {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
	font-size: 12px; padding-top: 16px; padding-bottom: 18px; color: #7d8ab0;
}
.tg-footer-credit a { color: #9aa7c9; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
	.tg-fnav-search input { width: 130px; }
	.tg-hero { flex-direction: column; align-items: flex-start; }
	.tg-hero-stats { width: 100%; }
	.tg-stat { flex: 1; }
}
@media (max-width: 860px) {
	.tg-fnav-search { display: none; }
	.tg-portal-back span { display: none; }
	.tg-footer-grid { grid-template-columns: 1fr 1fr; }
	.tg-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
	.tg-container { padding: 0 14px; }
	.tg-portal-top-in { min-height: 60px; }
	.tg-portal-logo img { height: 26px; }
	.tg-social { display: none; }
	.tg-portal-menu a { font-size: 13.5px; padding: 12px 10px; }
	.tg-fnav-in { gap: 10px; min-height: 56px; }
	.tg-fnav-logo img { height: 22px; }
	.tg-fnav-badge { display: none; }
	.tg-tab { padding: 7px 10px; font-size: 13px; }
	.tg-fnav-cta { padding: 9px 12px; }
	.tg-fnav-cta .icon { display: none; }
	.wrap { padding: 14px 10px 6px; }
	.forabg, .forumbg { margin-left: 0; margin-right: 0; }
	.tg-footer-bottom-in { padding-left: 14px; padding-right: 14px; }
	.tg-hero { padding: 24px 20px; border-radius: 16px; }
	.tg-hero-title { font-size: 23px; }
	.tg-hero-stats { gap: 8px; }
	.tg-stat { min-width: 0; padding: 10px 6px; font-size: 10px; }
	.tg-stat strong { font-size: 20px; }
	ul.topiclist li.row { padding: 4px 6px; }
	ul.topiclist li.row dl.row-item::before { width: 34px; height: 34px; line-height: 34px; font-size: 15px; margin-top: -17px; left: 2px; }
	dl.row-item dt .list-inner { padding-left: 46px; }
	.post { padding: 14px; }
	.tg-footer .tg-social { display: flex; }
	.tg-footer-grid { gap: 24px; padding-top: 32px; }
}
@media (max-width: 480px) {
	.tg-footer-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Disposição estilo IPB (página inicial): coluna principal + barra lateral
   ===================================================================== */
.tg-ipb {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 24px;
	align-items: start;
}
.tg-ipb-main { min-width: 0; }
.tg-ipb-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 84px; }

.tg-ipb-topbar {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin: 0 0 14px; font-size: 12.5px; color: var(--tg-text-dim);
}
.tg-ipb-time { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.tg-ipb-time .icon { color: var(--tg-purple); }
a.tg-ipb-markread {
	display: inline-flex; align-items: center; gap: 6px;
	font-weight: 700; font-size: 12.5px; color: var(--tg-purple);
	background: #fff; border: 1px solid var(--tg-line); border-radius: 30px; padding: 6px 13px;
}
a.tg-ipb-markread:hover { background: var(--tg-purple-soft); border-color: #d8c7fd; }

/* Cabeçalho da categoria: só o nome (como no IPB) */
.tg-ipb li.header dd { display: none; }
.tg-ipb li.header dt { width: 100%; margin-right: 0; }
.tg-ipb li.header dt .list-inner { margin-right: 0; padding-right: 0; }
.tg-ipb li.header dl.row-item dt, .tg-ipb li.header dl.row-item dd { min-height: 0; }
.tg-ipb li.header dt .list-inner a { font-size: 15px; text-transform: none; letter-spacing: .01em; }
.tg-ipb ul.topiclist li.header { padding: 10px 20px; }

/* Linhas dos fóruns: números com rótulo embaixo */
.tg-ipb ul.topiclist li.row { padding: 10px 14px; }
.tg-ipb dl.row-item dt .list-inner { padding-top: 6px; padding-bottom: 6px; }
.tg-ipb dd.topics, .tg-ipb dd.posts {
	width: 84px; line-height: 1.15; padding-top: 10px;
	font-size: 16px; font-weight: 800; color: var(--tg-title);
	border-left: 0 !important;
}
.tg-ipb dd.topics dfn, .tg-ipb dd.posts dfn {
	display: block; position: static; width: auto; height: auto; overflow: visible; clip: auto;
	font-style: normal; font-size: 11px; font-weight: 600; color: var(--tg-text-dim);
	text-transform: lowercase; margin-top: 3px;
}
.tg-ipb dd.lastpost {
	width: 250px; padding-left: 14px; border-left: 1px solid var(--tg-line) !important;
}
.tg-ipb dd.lastpost > span { padding-left: 0; display: block; line-height: 1.5; }
.tg-ipb dd.lastpost dfn { display: none; }
.tg-ipb dd.lastpost a.lastsubject {
	display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	vertical-align: bottom; font-size: 13px;
}

/* ---------- Widgets da barra lateral ---------- */
.tg-widget {
	background: #fff; border: 1px solid var(--tg-line);
	border-radius: var(--tg-radius); box-shadow: var(--tg-shadow);
	padding: 18px 18px 16px; font-size: 13px; color: var(--tg-text-dim); line-height: 1.55;
}
.tg-widget-t {
	display: flex; align-items: center; gap: 9px;
	font-size: 14.5px; font-weight: 800; color: var(--tg-title);
	margin: 0 0 12px; padding: 0 0 12px; border-bottom: 2px solid var(--tg-line);
	text-transform: none;
}
.tg-widget-t::before {
	content: ""; width: 10px; height: 10px; border-radius: 50%;
	background: var(--tg-purple); flex-shrink: 0;
}
.tg-widget-t a { color: var(--tg-title); }
.tg-widget-t a:hover { color: var(--tg-purple); }
.tg-widget-foot { margin: 12px 0 0; font-size: 12px; color: var(--tg-text-dim); }
.tg-widget-foot a { font-weight: 700; }

/* Entrar */
.tg-widget-login {
	background: var(--tg-grad-hero); border: 0; color: #ddd6fe;
	box-shadow: 0 14px 30px rgba(23, 10, 58, .22);
}
.tg-widget-login .tg-widget-t { color: #fff; border-bottom-color: rgba(255, 255, 255, .14); }
.tg-widget-login .tg-widget-t::before { background: #a78bfa; }
.tg-field { display: block; margin-bottom: 10px; }
.tg-field span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #c4b5fd; margin-bottom: 5px; }
.tg-widget-login .inputbox {
	width: 100% !important; box-sizing: border-box; min-height: 38px;
	background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff;
}
.tg-widget-login .inputbox:focus { background: rgba(255, 255, 255, .16); border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(167, 139, 250, .25); }
.tg-login-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 2px 0 14px; font-size: 12px; }
.tg-login-row a { color: #ddd6fe; }
.tg-login-row a:hover { color: #fff; }
.tg-check { display: inline-flex; align-items: center; gap: 6px; color: #ddd6fe; cursor: pointer; }
.tg-check input { accent-color: #a78bfa; }
.tg-widget-login input.button1.tg-full {
	width: 100% !important; display: block; background: #fff; border-color: #fff; color: var(--tg-purple-dark) !important;
	box-shadow: none; padding: 9px 16px; font-size: 13.5px;
}
.tg-widget-login input.button1.tg-full:hover { background: #ede9fe; border-color: #ede9fe; color: var(--tg-purple-dark) !important; }
.tg-widget-login .tg-widget-foot { color: #c4b5fd; }
.tg-widget-login .tg-widget-foot a { color: #fff; }

/* Quem está online */
.tg-widget-online .tg-widget-t::before { display: none; }
.tg-live {
	width: 10px; height: 10px; border-radius: 50%; background: #22c55e; flex-shrink: 0;
	box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: tg-pulse 1.8s infinite;
}
@keyframes tg-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.tg-online-total { margin: 0 0 10px; }
.tg-online-total strong { color: var(--tg-title); }
.tg-online-list { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0; }
.tg-online-list a, .tg-online-list span.username, .tg-online-list span.username-coloured {
	font-size: 12.5px; font-weight: 700;
	background: var(--tg-purple-soft); border-radius: 30px; padding: 4px 10px;
}
.tg-online-legend { margin: 10px 0 0; font-size: 11.5px; }
.tg-online-legend a { font-weight: 700; }

/* Tópicos recentes */
.tg-recent-list { list-style: none; margin: 0; padding: 0; }
.tg-recent-list li + li { border-top: 1px solid var(--tg-line); }
.tg-recent-list a { display: flex; gap: 11px; align-items: flex-start; padding: 10px 0; }
.tg-recent-av {
	flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
	display: flex; align-items: center; justify-content: center;
	background: var(--tg-grad-box); color: #fff; font-weight: 800; font-size: 14px;
}
.tg-recent-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tg-recent-txt b { font-size: 13px; font-weight: 700; color: var(--tg-title); line-height: 1.35;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tg-recent-txt small { font-size: 11.5px; color: var(--tg-text-dim); font-weight: 500; }
.tg-recent-list a:hover b { color: var(--tg-purple); }

/* Estatísticas */
.tg-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tg-st {
	background: var(--tg-bg); border-radius: 12px; padding: 10px 6px; text-align: center;
	font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--tg-text-dim);
	display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; line-height: 1.25;
}
.tg-st strong { font-size: 20px; font-weight: 800; color: var(--tg-title); letter-spacing: 0; }
.tg-newest a { font-weight: 800; }

@media (max-width: 1100px) {
	.tg-ipb { grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
	.tg-ipb dd.lastpost { width: 200px; }
}
@media (max-width: 900px) {
	.tg-ipb { grid-template-columns: 1fr; }
	.tg-ipb-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* =====================================================================
   Leitura dos tópicos estilo XenForo: autor à esquerda, mensagem à direita
   ===================================================================== */
.post.has-profile > .inner { display: flex; align-items: flex-start; }
.post.has-profile .postprofile {
	order: -1; float: none; flex: 0 0 190px; width: 190px; box-sizing: border-box;
	min-height: 0; margin: 0 24px 0 0; padding: 4px 22px 4px 0;
	border-left: 0; border-right: 1px solid var(--tg-line);
	text-align: center;
}
.post.has-profile .postbody { float: none; flex: 1 1 auto; width: auto; min-width: 0; }

/* Avatar grande em cartão */
.postprofile .avatar-container { display: block; margin: 0 auto 10px; }
.postprofile .avatar img, .postprofile .avatar-container img {
	width: 120px !important; height: 120px !important; object-fit: cover;
	border-radius: 18px; border: 3px solid #fff;
	box-shadow: 0 0 0 2px var(--tg-purple), 0 10px 24px rgba(76, 29, 149, .22);
}
.postprofile dt.no-avatar::before {
	content: "\f007"; font-family: FontAwesome;
	display: block; width: 120px; height: 120px; margin: 0 auto 10px;
	border-radius: 18px; background: var(--tg-grad-box); color: rgba(255, 255, 255, .92);
	font-size: 58px; line-height: 120px; text-align: center;
	box-shadow: 0 10px 24px rgba(76, 29, 149, .22);
}
.postprofile dt { display: block; }
.postprofile dt a.username, .postprofile dt a.username-coloured,
.postprofile dt span.username, .postprofile dt span.username-coloured,
.postprofile dt strong {
	display: block; font-size: 16px; font-weight: 800; line-height: 1.3; margin-top: 2px;
}
/* Cargo como faixa */
.postprofile .profile-rank {
	display: inline-block; margin: 8px 0 12px;
	background: var(--tg-purple-dark); color: #fff;
	font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
	padding: 4px 12px; border-radius: 6px;
}
.postprofile .profile-rank img { margin-top: 4px; }
/* Estatísticas: rótulo à esquerda, valor à direita */
.postprofile dd:not(.profile-rank):not(.profile-contact) {
	display: flex; justify-content: space-between; gap: 8px;
	text-align: left; font-size: 12px; line-height: 1.5; color: var(--tg-title); font-weight: 600;
	padding: 3px 0; border-top: 1px dashed var(--tg-line);
}
.postprofile dd:not(.profile-rank):not(.profile-contact) strong { font-weight: 500; color: var(--tg-text-dim); flex-shrink: 0; }
.postprofile dd.profile-joined { flex-wrap: wrap; }
.postprofile dd.profile-contact { margin-top: 8px; text-align: center; }

/* Mensagem: título discreto e data em cima, como no XenForo */
.postbody h3, .postbody h3.first { font-size: 15px; margin: 0 0 4px; padding-right: 160px; }
.postbody h3 a { color: var(--tg-text-dim); font-weight: 600; }
.postbody .author { font-size: 12px; margin-bottom: 14px; padding-bottom: 10px; }
.postbody .author a.unread { display: none; }
.postbody .content { font-size: 15.5px; line-height: 1.8; }

@media (max-width: 700px) {
	.post.has-profile > .inner { flex-direction: column; }
	.post.has-profile .postprofile {
		flex: none; width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
		margin: 0 0 12px; padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--tg-line);
		text-align: left;
	}
	.postprofile .avatar img, .postprofile .avatar-container img { width: 54px !important; height: 54px !important; border-radius: 12px; }
	.postprofile dt.no-avatar::before { width: 54px; height: 54px; font-size: 26px; line-height: 54px; border-radius: 12px; margin: 0; }
	.postprofile dt { display: flex; align-items: center; gap: 10px; }
	.postprofile .avatar-container { margin: 0; }
	.postprofile .profile-rank { margin: 0; }
	.postprofile dd:not(.profile-rank):not(.profile-contact) { display: none; }
	.postbody h3, .postbody h3.first { padding-right: 0; }
}

/* =====================================================================
   Correção: caixa de busca da barra de ações (tópicos e fóruns)
   ===================================================================== */
.action-bar .search-box { margin: 0 6px; }
.action-bar .search-box fieldset {
	display: inline-flex; align-items: stretch; height: 34px;
	background: #fff; border: 1px solid var(--tg-line); border-radius: 10px; overflow: hidden;
	transition: border-color .15s, box-shadow .15s;
}
.action-bar .search-box fieldset:focus-within { border-color: var(--tg-purple); box-shadow: 0 0 0 3px rgba(124, 58, 237, .12); }
.action-bar .search-box .inputbox.search, .action-bar .search-box input.inputbox {
	border: 0 !important; box-shadow: none !important; border-radius: 0; background: transparent;
	height: 32px; padding: 0 12px; width: 190px; font-size: 13px; float: none;
}
.action-bar .search-box .button-search, .action-bar .search-box .button-search-end {
	float: none; height: 32px; margin: 0; padding: 0 11px; display: inline-flex; align-items: center;
	border: 0; border-left: 1px solid var(--tg-line); border-radius: 0; background: transparent; box-shadow: none;
	color: var(--tg-text-dim);
}
.action-bar .search-box .button-search:hover, .action-bar .search-box .button-search-end:hover { background: var(--tg-purple-soft); color: var(--tg-purple); }
.action-bar .button { height: 34px; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; }
.action-bar .dropdown-container .button { padding: 0 10px; }

/* Textos de painéis (cadastro, ajuda, busca) mais legíveis */
.panel .content p, .panel > .inner > p, .panel p, fieldset dl dd, fieldset dt label, dl.details dd { font-size: 13.5px; line-height: 1.6; }
.panel .content h2, .panel h2 { font-size: 20px; }
fieldset dt span, dt .explain { font-size: 12px; color: var(--tg-text-dim); }

/* Nome do usuário no banner sempre branco */
.tg-hero-title a, .tg-hero-title span { color: #fff !important; }

/* Rodapé do phpBB oculto: o conteúdo útil foi para o rodapé Tecnogaming
   (o #page-footer fica no HTML porque guarda as janelas de aviso do phpBB) */
#page-footer > .navbar, #page-footer > .copyright { display: none !important; }
#page-footer { margin: 0; padding: 0; }
.tg-footer-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.tg-footer-links a { color: #9aa7c9; }
.tg-footer-links a:hover { color: #fff; }

/* Tabelas (membros, grupos, equipe): cabeçalho com respiro e colunas alinhadas */
.forumbg-table { padding: 0; }
.forumbg-table > .inner { margin: 0; }
table.table1 { width: 100%; border-collapse: collapse; border-spacing: 0; background: transparent; }
table.table1 thead th {
	background: transparent !important; color: #fff;
	padding: 13px 16px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
	text-align: left; white-space: nowrap; border: 0;
}
table.table1 thead th.posts, table.table1 tbody td.posts { text-align: center; }
table.table1 thead th a { color: #fff; }
table.table1 tbody td {
	background: #fff; padding: 13px 16px; font-size: 13px; color: var(--tg-title);
	border: 0; border-top: 1px solid var(--tg-line); vertical-align: middle;
}
table.table1 tbody tr:hover td { background: #faf7ff; }
table.table1 tbody td a.username, table.table1 tbody td a.username-coloured { font-weight: 800; }
table.table1 tbody td .rank-img, table.table1 tbody td span.rank { color: var(--tg-text-dim); }

/* Janelas de aviso do phpBB (AJAX): na frente da barra fixa, no visual do fórum */
.darkenwrapper, .darken { z-index: 900 !important; }
.darken { background: rgba(15, 10, 40, .45) !important; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 1 !important; }
.phpbb_alert {
	z-index: 1000 !important; top: 22vh !important;
	width: 440px; max-width: calc(100vw - 32px); margin-left: 0 !important; left: 50% !important; transform: translateX(-50%);
	background: #fff !important; border: 0 !important; border-radius: 18px !important;
	box-shadow: 0 24px 60px rgba(23, 10, 58, .35) !important;
	padding: 22px 24px 20px !important; box-sizing: border-box; font-family: var(--tg-font);
}
.phpbb_alert .alert_title, .phpbb_alert h3 {
	font-size: 17px !important; font-weight: 800; color: var(--tg-title); border: 0 !important;
	margin: 0 0 8px !important; padding: 0 !important; text-transform: none;
}
.phpbb_alert .alert_text { font-size: 14px; line-height: 1.6; color: var(--tg-text-dim); }
.phpbb_alert .alert_close { top: 14px !important; right: 14px !important; color: var(--tg-text-dim); }
.phpbb_alert .alert_close .icon { font-size: 20px; }
.phpbb_alert input.button1, .phpbb_alert input.button2 { margin-top: 12px; }
a.tg-ipb-markread:hover { text-decoration: none; }

/* =====================================================================
   Integração com o portal: Placar ao vivo (mesmos cartões do WordPress)
   ===================================================================== */
@keyframes tgpPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.tgp { position: relative; background: linear-gradient(115deg, #170a3a 0%, #2e1170 55%, #4c1d95 100%); font-family: Poppins, sans-serif; color: #fff; overflow: hidden; }
.tgp[hidden] { display: none; }
.tgp * { box-sizing: border-box; }
.tgp::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 220px at 12% 0%, rgba(168, 115, 255, .35), transparent 70%), radial-gradient(500px 200px at 95% 100%, rgba(124, 58, 237, .35), transparent 70%), radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px) 0 0 / 18px 18px; -webkit-mask-image: linear-gradient(100deg, #000 0, #000 35%, rgba(0, 0, 0, .35) 100%); mask-image: linear-gradient(100deg, #000 0, #000 35%, rgba(0, 0, 0, .35) 100%); pointer-events: none; }
.tgp-in { position: relative; margin: 0 auto; padding: 18px 20px 20px; }
.tgp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.tgp-rot { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #cdb8f8; }
.tgp-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.tgp-chip { border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07); color: #e9defd; font: 700 12px Poppins, sans-serif; padding: 6px 14px; border-radius: 30px; cursor: pointer; transition: background .15s; }
.tgp-chip:hover { background: rgba(255, 255, 255, .16); }
.tgp-chip.on { background: linear-gradient(135deg, #fff, #ece3ff); color: #4c1d95; border-color: #fff; box-shadow: 0 4px 14px rgba(167, 139, 250, .45); }
.tgp-sep { width: 1px; background: rgba(255, 255, 255, .22); margin: 4px 6px; align-self: stretch; }
.tgp-wrap { position: relative; padding: 0 24px; }
.tgp-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x; scrollbar-width: none; padding: 4px 2px 14px; }
.tgp-track::-webkit-scrollbar { display: none; }
.tgp-card { flex: 0 0 248px; min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 12px 14px; transition: background .2s, border-color .2s, box-shadow .2s; color: #fff !important; text-decoration: none !important; }
.tgp-card:hover { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .4); box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }
.tgp-card.is-live { border-color: rgba(255, 92, 92, .7); box-shadow: 0 0 0 1px rgba(255, 92, 92, .35), 0 8px 26px rgba(239, 68, 68, .22); }
.tgp-br { display: inline-block; vertical-align: 1px; background: linear-gradient(135deg, #15803d, #ca8a04); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; padding: 1px 6px; border-radius: 4px; margin-right: 3px; }
.tgp-camp { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #cdb8f8; line-height: 1.35; min-height: 2.7em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tgp-row { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.tgp-camp + .tgp-row { border-top: 0; }
.tgp-logo { flex: 0 0 28px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.tgp-logo img { max-width: 28px; max-height: 28px; object-fit: contain; display: block; }
.tgp-ini { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 800; color: #fff; }
.tgp-nome { flex: 1 1 0%; min-width: 0; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tgp-nome[data-slug]:not([data-slug=""]):hover { text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tgp-sc { font-size: 19px; font-weight: 800; min-width: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.tgp-row.lose .tgp-nome, .tgp-row.lose .tgp-sc { opacity: .5; }
.tgp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; min-height: 24px; }
.tgp-day { background: #8b5cf6; color: #fff; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 5px; letter-spacing: .03em; }
.tgp-hora { font-size: 12.5px; font-weight: 700; color: #e9defd; }
.tgp-live { display: inline-flex; align-items: center; gap: 6px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 5px; letter-spacing: .04em; }
.tgp-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: tgpPulse 1.2s ease infinite; }
.tgp-end { background: rgba(255, 255, 255, .14); color: #e9defd; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 5px; letter-spacing: .04em; }
.tgp-sub { font-size: 12px; font-weight: 700; color: #e9defd; }
.tgp-arrow { position: absolute; top: calc(50% - 7px); transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; color: #4c1d95; padding: 0; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); z-index: 2; display: none; align-items: center; justify-content: center; }
.tgp-arrow svg { width: 14px; height: 14px; display: block; }
.tgp-arrow.l { left: -6px; }
.tgp-arrow.r { right: -6px; }
.tgp.can-scroll .tgp-arrow { display: flex; }
.tgp.can-scroll:not(.at-end) .tgp-track { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.tgp.can-scroll:not(.at-start) .tgp-track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
.tgp.can-scroll:not(.at-start):not(.at-end) .tgp-track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.tgp.at-start .tgp-arrow.l, .tgp.at-end .tgp-arrow.r { display: none; }
.tgp-vazio { padding: 18px 4px; font-size: 13px; color: #d9c6ff; margin: 0; }
.tgp.tgp-vivo .tgp-rot::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; margin-right: 8px; vertical-align: 1px; animation: tgpPulse 1.2s ease infinite; }

/* No fórum: cartão arredondado dentro da largura do conteúdo */
.tg-placar { border-radius: 20px; margin: 0 0 24px; box-shadow: 0 14px 34px rgba(23, 10, 58, .22); }
.tg-placar .tgp-in { padding: 18px 22px 18px; }
a.tg-placar-link { margin-left: 12px; color: #fff; font-size: 11.5px; letter-spacing: .04em; text-transform: none; font-weight: 700; opacity: .85; }
a.tg-placar-link:hover { opacity: 1; color: #fff; text-decoration: underline; }
@media (max-width: 640px) {
	.tgp-wrap { padding: 0; }
	.tgp.can-scroll .tgp-arrow { display: none !important; }
	.tgp-chips { justify-content: flex-start; }
	.tgp-card { flex-basis: 216px; }
	.tg-placar { border-radius: 16px; }
}

/* =====================================================================
   Últimas do Tecnogaming (barra lateral)
   ===================================================================== */
.tg-widget-t .tg-widget-more { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--tg-purple); }
.tg-news-list { list-style: none; margin: 0; padding: 0; }
.tg-news-list li + li { border-top: 1px solid var(--tg-line); }
.tg-news-list a { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; }
.tg-news-thumb {
	position: relative; flex: 0 0 78px; width: 78px; height: 58px; border-radius: 10px; overflow: hidden;
	background: linear-gradient(135deg, var(--tg-purple-tint), #ddd0fb);
}
.tg-news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.tg-news-thumb::after { content: ""; position: absolute; left: 6px; bottom: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff; }
.tg-news-list a:hover .tg-news-thumb img { transform: scale(1.06); }
.tg-news-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tg-news-pill { align-self: flex-start; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.tg-news-txt b { font-size: 13px; font-weight: 700; color: var(--tg-title); line-height: 1.35;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tg-news-txt small { font-size: 11.5px; color: var(--tg-text-dim); font-weight: 500; }
.tg-news-list a:hover b { color: var(--tg-purple); }

/* =====================================================================
   Subfóruns como chips (lista de fóruns)
   ===================================================================== */
.row .list-inner strong:not(.badge) + a.subforum,
.row .list-inner a.subforum { white-space: nowrap; }
.row .list-inner br + strong { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tg-text-dim); margin-right: 4px; }
a.subforum {
	display: inline-flex; align-items: center; gap: 5px;
	margin: 6px 4px 0 0; padding: 3px 10px 3px 8px;
	font-size: 12px; font-weight: 600; color: var(--tg-purple-dark) !important;
	background: var(--tg-purple-soft); border: 1px solid #e6dcfd; border-radius: 30px;
	text-decoration: none !important; transition: background .15s, border-color .15s;
}
a.subforum:hover { background: #efe7ff; border-color: #d8c7fd; color: var(--tg-purple) !important; }
a.subforum .icon { font-size: 11px; color: var(--tg-purple) !important; }
a.subforum.unread { font-weight: 800; }
a.subforum.unread .icon { color: var(--tg-red) !important; }

/* BBCode [spoiler] */
details.tg-spoiler { margin: 10px 0; border: 1px solid #e6dcfd; border-radius: 12px; background: var(--tg-purple-soft); overflow: hidden; }
details.tg-spoiler > summary {
	cursor: pointer; list-style: none; padding: 9px 14px; font-size: 13px; font-weight: 700; color: var(--tg-purple-dark);
	display: flex; align-items: center; gap: 8px; user-select: none;
}
details.tg-spoiler > summary::-webkit-details-marker { display: none; }
details.tg-spoiler > summary::before { content: "\f070"; font-family: FontAwesome; font-weight: normal; color: var(--tg-purple); }
details.tg-spoiler[open] > summary::before { content: "\f06e"; }
details.tg-spoiler[open] > summary { border-bottom: 1px solid #e6dcfd; }
.tg-spoiler-body { padding: 12px 14px; background: #fff; }

/* Vídeos embutidos (YouTube e Twitch) */
.tg-embed {
	position: relative; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; margin: 10px 0 6px;
	border-radius: 14px; overflow: hidden; background: #0f1a33 center / cover no-repeat;
	box-shadow: 0 10px 26px rgba(12, 33, 73, .18);
}
.tg-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tg-embed-yt { cursor: pointer; }
.tg-embed-yt::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(23, 10, 58, .45)); transition: opacity .2s; }
.tg-embed-yt:hover::before { opacity: .6; }
.tg-embed-play {
	position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%);
	border-radius: 14px; background: var(--tg-purple); box-shadow: 0 8px 22px rgba(124, 58, 237, .5);
	transition: transform .15s;
}
.tg-embed-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.tg-embed-yt:hover .tg-embed-play { transform: translate(-50%, -50%) scale(1.08); }
.tg-embed-yt:focus-visible { outline: 3px solid var(--tg-purple); outline-offset: 3px; }
a.tg-embed-src { display: inline-block; font-size: 12px; color: var(--tg-text-dim) !important; border-bottom: 0 !important; word-break: break-all; }

/* =====================================================================
   Painel do usuário, MCP e perfil: tipografia legível e cartões
   ===================================================================== */
.tabs .tab > a { font-size: 13px; padding: 9px 16px; }
#cp-menu, .cp-menu { width: 21%; }
#navigation { margin-top: 4px; }
#navigation li { margin: 2px 0; }
#navigation a { display: block; font-size: 13.5px; padding: 9px 12px; border-radius: 10px; line-height: 1.35; }
#navigation #active-subsection a, #navigation li.active-subsection a { font-weight: 700; }
#cp-main .panel, .cp-main .panel { padding: 18px 22px; }
#cp-main h2, .cp-main h2 { font-size: 20px; margin-bottom: 8px; }
#cp-main p, .cp-main p { font-size: 13.5px; }
.cp-mini { padding: 12px 14px; font-size: 13px; }

/* Perfil público (memberlist viewprofile) */
.panel dl.details dt, .panel dl.details dd, dl.details dt, dl.details dd { font-size: 13.5px; line-height: 1.6; }
dl.details dt { text-align: left; color: var(--tg-text-dim); font-weight: 600; width: 34%; }
dl.details dd { margin-left: 36%; color: var(--tg-title); }
.memberlist-viewprofile .panel, .section-memberlist .panel { border-radius: var(--tg-radius); }
.section-memberlist .panel h3 { font-size: 16px; margin: 0 0 10px; }
.section-memberlist .avatar-container img, .section-memberlist .profile-avatar img { width: 120px !important; height: 120px !important; object-fit: cover; border-radius: 18px; }

/* Destaque da palavra buscada na cor da marca */
.posthilit { background: #efe7ff; color: var(--tg-purple-dark); border-radius: 4px; padding: 0 3px; }

/* Resultados de busca: cartão do post sem o layout XenForo (não tem perfil completo) */
.search.post .postprofile { border-left: 1px solid var(--tg-line); font-size: 12.5px; }
.search.post .postbody h3 { padding-right: 0; }

/* Ajustes: perfil em grade e larguras do painel do usuário */
dl.details { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 4px 14px; align-items: baseline; }
dl.details dt { grid-column: 1; float: none; width: auto; margin: 0; padding: 4px 0; }
dl.details dd { grid-column: 2; margin: 0; padding: 4px 0; }
#cp-menu, .cp-menu { width: 22%; }
#cp-main, .cp-main { width: 76%; margin-left: 2%; }
@media (max-width: 700px) {
	#cp-menu, .cp-menu, #cp-main, .cp-main { width: auto; margin-left: 0; float: none; }
	dl.details { grid-template-columns: 1fr; }
	dl.details dt, dl.details dd { grid-column: 1; }
	dl.details dt { padding-bottom: 0; }
}

/* Ajustes: abas do fórum em linha própria no celular */
@media (max-width: 700px) {
	.tg-fnav-in { flex-wrap: wrap; row-gap: 6px; }
	.tg-fnav-tabs { order: 3; flex: 1 0 100%; width: 100%; max-width: none; padding-bottom: 6px; scrollbar-width: none; }
	.tg-fnav-tabs::-webkit-scrollbar { display: none; }
}