/* ============================================================
   TechForum Pro — Tema moderno profissional para SMF 2.1.x
   Overrides do tema default Curve2
   Cor principal: #2196f3 (azul técnico)
   ============================================================ */

:root {
    --pf-primary: #2196f3;
    --pf-primary-dark: #1565c0;
    --pf-primary-darker: #0d47a1;
    --pf-primary-light: #e3f2fd;
    --pf-primary-lighter: #f5f9ff;
    --pf-dark: #0d1b2a;
    --pf-dark-2: #152238;
    --pf-dark-3: #1e3050;
    --pf-bg: #f0f4f8;
    --pf-card: #ffffff;
    --pf-border: #e1e8f0;
    --pf-text: #2c3e50;
    --pf-text-muted: #64748b;
    --pf-footer-bg: #0b1522;
    --pf-code-bg: #0d1117;
    --pf-code-border: #30363d;
    --pf-success: #4caf50;
    --pf-warning: #ff9800;
    --pf-danger: #f44336;
    --pf-radius: 12px;
    --pf-radius-sm: 8px;
    --pf-shadow: 0 2px 12px rgba(13, 27, 42, 0.08);
    --pf-shadow-hover: 0 8px 24px rgba(13, 27, 42, 0.14);
    --pf-transition: all 0.2s ease;
}

/* ============ BASE ============ */
html {
    background: var(--pf-dark);
    scroll-padding-top: 4.5rem;
}

body {
    background: var(--pf-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 87.5%;
    line-height: 1.6;
    color: var(--pf-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

::selection {
    background: var(--pf-primary);
    color: #fff;
}

/* ============ LINKS ============ */
a,
a:visited {
    color: var(--pf-primary-dark);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--pf-primary);
    text-decoration: underline;
}

/* ============ INPUTS / FORMULÁRIOS ============ */
input,
button,
select,
textarea {
    color: var(--pf-text);
    font-family: inherit;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.4em 0.55em;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    height: 2.1em;
}

textarea {
    height: auto;
}

input:hover,
textarea:hover,
button:hover,
select:hover {
    border-color: var(--pf-primary);
}

input:focus,
textarea:focus,
button:focus,
select:focus {
    outline: none;
    border-color: var(--pf-primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.18);
    background: #fff;
}

input[type="checkbox"],
input[type="radio"] {
    border: none;
    box-shadow: none;
    accent-color: var(--pf-primary);
}

fieldset {
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius-sm);
}

legend {
    font-weight: 600;
    color: var(--pf-text);
}

/* ============ BOTÕES ============ */
.button,
.quickbuttons>li>a,
.inline_mod_check {
    display: inline-block;
    padding: 0 14px;
    color: var(--pf-text);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 2.1em;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--pf-border);
    border-radius: 6px;
    box-shadow: none;
    transition: var(--pf-transition);
    min-height: 2.1em;
    vertical-align: middle;
}

.button:hover,
.button:focus,
.quickbuttons>li:hover>a,
.quickbuttons>li>a:focus {
    color: var(--pf-primary-dark);
    border-color: var(--pf-primary);
    background: var(--pf-primary-lighter);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
    text-decoration: none;
}

.button.active {
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-primary-dark));
    color: #fff;
    font-weight: 700;
    border: 1px solid var(--pf-primary-dark);
    text-shadow: none;
}

.button.active:hover,
.button.active:focus {
    background: linear-gradient(135deg, var(--pf-primary-dark), var(--pf-primary-darker));
    color: #fff;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.buttonlist .button,
.pagelinks .button {
    margin: 0 2px;
}

/* ============ BARRA SUPERIOR (login / pesquisa) ============ */
#top_section {
    border-bottom: 1px solid var(--pf-border);
    box-shadow: none;
    background: #f8fafc; /* cinza muito claro, consistente com header */
    clear: both;
}

#top_section::after {
    content: "";
    display: block;
    clear: both;
}

#top_section .inner_wrap {
    max-width: 1280px;
    margin: 0 auto;
    width: 92%;
}

#top_section a {
    color: #475569; /* cinza escuro legível no fundo claro */
}

#top_section a:hover {
    color: var(--pf-primary);
}

#top_section .welcome {
    color: #64748b;
}

/* Ligações de topo (perfil, PMs, alertas) */
#top_info {
    padding: 6px 0;
    line-height: 1.5em;
}

#top_info>li>a {
    color: #475569;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: var(--pf-transition);
}

#top_info>li:hover>a,
#top_info>li>a:focus,
#top_info>li>a.open {
    background: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.2);
    color: var(--pf-primary);
    box-shadow: none;
    text-shadow: none;
}

#top_info>li>a.active {
    background: rgba(33, 150, 243, 0.15);
    border-color: rgba(33, 150, 243, 0.3);
    color: var(--pf-primary);
}

#top_info .amt {
    background: #ef4444; /* vermelho vivo - mais chamativo para notificações */
    color: #fff;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 0.75em;
    padding: 0 4px;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3), 0 2px 6px rgba(239, 68, 68, 0.4);
    animation: pfPulse 2s ease-in-out infinite;
}

@keyframes pfPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3), 0 2px 6px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.5), 0 2px 8px rgba(239, 68, 68, 0.5); }
}

/* Botões de Login / Registo */
#top_info .button_login>a,
#top_info .button_signup>a {
    display: inline-block;
    border-radius: 20px;
    font-weight: 600;
    margin: 2px 0;
}

#top_info .button_login>a {
    background: transparent;
    border: 1px solid var(--pf-primary);
    color: var(--pf-primary);
}

#top_info .button_login>a:hover {
    background: var(--pf-primary);
    border-color: var(--pf-primary);
    color: #fff;
    text-decoration: none;
}

#top_info .button_signup>a {
    background: var(--pf-primary);
    border: 1px solid var(--pf-primary);
    color: #fff;
}

#top_info .button_signup>a:hover {
    background: var(--pf-primary-dark);
    border-color: var(--pf-primary-dark);
    text-decoration: none;
}

/* Barra de pesquisa */
#search_form {
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

#search_form input[type="search"] {
    width: 220px;
    background: #fff;
    border: 1px solid var(--pf-border);
    color: var(--pf-text);
    border-radius: 20px;
    height: 2em;
    padding: 0 14px;
}

#search_form input[type="search"]::placeholder {
    color: #94a3b8;
}

#search_form input[type="search"]:focus {
    background: #fff;
    border-color: var(--pf-primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

#search_form input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

#search_form select {
    background: #fff;
    border: 1px solid var(--pf-border);
    color: var(--pf-text);
    border-radius: 6px;
    height: 2em;
    width: auto;
}

#search_form select option {
    color: var(--pf-text);
}

#search_form .button {
    background: var(--pf-primary);
    border-color: var(--pf-primary);
    color: #fff;
    border-radius: 20px;
}

#search_form .button:hover {
    background: var(--pf-primary-dark);
    border-color: var(--pf-primary-dark);
    color: #fff;
}

/* Seletor de idioma */
#languages_form {
    padding: 6px 0;
}

#languages_form select {
    background: #fff;
    border-color: var(--pf-border);
    color: var(--pf-text);
    border-radius: 6px;
}

#languages_form select option {
    color: var(--pf-text);
}

/* ============ HEADER (logo + slogan) ============ */
#header {
    padding: 4px 2% 4px; /* reduzido para 4px em cima/baixo */
    display: flex;
    align-items: center;
    justify-content: center; /* centraliza o logo horizontalmente */
    background: linear-gradient(160deg, #f8fafc 0%, #eef2f7 55%, #e2e8f0 100%);
    border-bottom: 3px solid var(--pf-primary);
    position: relative;
}

#header::after {
    content: "";
    display: block;
    clear: both;
}

#header,
#header .inner_wrap {
    max-width: 1280px;
    margin: 0 auto;
    width: 92%;
}

/* Container do título/logo - agora centrado */
h1.forumtitle {
    font-size: 1.9em;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: -0.01em;
    padding: 6px 0;
    /* flex: 1 1 auto; REMOVIDO - não queremos que ocupe todo o espaço */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: center;
    width: 100%;
}

h1.forumtitle a {
    color: #1e293b; /* texto escuro para fundo claro */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    display: inline-block;
    /* SEM fundo - logo tem fundo transparente */
    background: transparent;
    padding: 4px 0;
    box-shadow: none;
    border: none;
    transition: var(--pf-transition);
}

h1.forumtitle a:hover {
    color: var(--pf-primary);
    text-decoration: none;
    /* Apenas escala subtil no hover */
    transform: scale(1.02);
}

/* Logo/banner personalizado - tamanho ~365x130, fundo transparente */
h1.forumtitle img {
    max-height: 130px; /* altura alvo ~130px */
    max-width: 365px;  /* largura alvo ~365px */
    width: auto;
    height: auto;
    /* Sombra muito subtil para profundidade, sem fundo */
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

#siteslogan {
    color: #475569; /* cinza escuro legível no fundo claro */
    font-size: 1.05em;
    font-weight: 400;
    padding-right: 8px;
    text-align: right;
    position: absolute;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
}

img#smflogo {
    opacity: 0.7;
    filter: brightness(0) invert(0.3); /* escuro para fundo claro */
    margin: 8px 0 0;
}

/* ============ MENU PRINCIPAL (sticky) ============ */
#main_menu {
    margin: 0;
    background: var(--pf-dark-2);
    border-radius: 10px;
    padding: 0 8px;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 4px 16px rgba(13, 27, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Ocultar o botão "Membros" (memberlist) do menu de navegação */
.dropmenu li.button_mlist {
    display: none;
}

/* Menu nível 1 */
.dropmenu>li,
#top_info>li {
    display: inline-block;
    margin: 0 1px;
    font-size: 0.92em;
    line-height: 2em;
}

.dropmenu>li>a,
.dropmenu li a {
    padding: 7px 14px;
    display: block;
    border: none;
    border-radius: 6px;
    color: #cbd5e1;
    transition: var(--pf-transition);
    position: relative;
}

.dropmenu>li:hover>a,
.dropmenu>li>a:focus {
    background: rgba(33, 150, 243, 0.15);
    border: none;
    color: #fff;
    box-shadow: none;
    text-shadow: none;
}

.dropmenu>li>a.active {
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-primary-dark));
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    text-shadow: none;
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.35);
}

.dropmenu li a.active:hover {
    background: linear-gradient(135deg, var(--pf-primary-dark), var(--pf-primary-darker));
    border: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

/* ============ Profile Menu Tabs - Fix contrast for unselected tabs ============ */
/* Override .dropmenu li a color for profile user links to ensure accessibility */
.profile_user_links li a,
.generic_menu .dropmenu li a {
    color: #334155; /* slate-700 - WCAG AA compliant on light backgrounds */
    font-weight: 500;
}
.profile_user_links li a:hover,
.profile_user_links li a:focus,
.generic_menu .dropmenu li a:hover,
.generic_menu .dropmenu li a:focus {
    color: var(--pf-primary); /* brand color on hover/focus */
    text-decoration: none;
}
/* Ensure active tab keeps its white text (already styled via .dropmenu li a.active) */

.dropmenu li .amt {
    background: #ef4444; /* vermelho vivo - consistente com #top_info .amt */
    color: #fff;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3), 0 2px 6px rgba(239, 68, 68, 0.4);
    animation: pfPulse 2s ease-in-out infinite;
}

/* Menus dropdown níveis 2 e 3 */
.dropmenu li ul,
.top_menu {
    z-index: 600;
    position: absolute;
    display: none;
    min-width: 16em;
    padding: 8px;
    font-weight: normal;
    background: var(--pf-dark-2); /* fundo escuro para contraste com header claro */
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius-sm);
    box-shadow: 0 12px 32px rgba(13, 27, 42, 0.18);
    animation: pfMenuIn 0.15s ease;
}

@keyframes pfMenuIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropmenu li li {
    margin: 0;
    padding: 0;
    width: auto;
    font-size: 0.95em;
    border-radius: 6px;
    border: none;
}

.dropmenu li:hover li a,
.dropmenu li li a {
    background: none;
    padding: 6px 12px;
    color: #e2e8f0; /* texto claro para fundo escuro */
    border: none !important;
    line-height: 1.8em;
    border-radius: 6px;
}

.dropmenu li li:hover>a,
.dropmenu li li a:focus,
.dropmenu li li a:hover {
    color: #fff;
    background: var(--pf-primary); /* azul primário no hover */
    border: none !important;
    text-decoration: none;
}

.dropmenu li li.subsections>a::after {
    position: absolute;
    padding: 5px 0;
    right: 10px;
    content: "\25b8";
    color: var(--pf-primary);
    font-size: 0.85em;
}

.dropmenu li li a.chosen {
    font-weight: 700;
    color: var(--pf-primary-light);
}

/* Separadores do menu */
.dropmenu li a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--pf-primary);
    border-radius: 2px;
    transition: transform 0.2s ease;
    pointer-events: none;
}

.dropmenu>li>a.active::after {
    display: none;
}

.dropmenu>li>a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ============ ZONA SUPERIOR INTERNA (info utilizador) ============ */
#wrapper {
    clear: both;
    background: var(--pf-card);
    border: none;
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow);
}

#top_section .inner_wrap,
#wrapper,
#header,
#footer .inner_wrap {
    max-width: 1280px;
    margin: 0 auto;
    width: 92%;
}

#wrapper {
    margin-top: 0;
}

#upper_section {
    padding: 4px 4px 0;
}

#inner_section {
    padding: 10px 14px 2px;
    border-radius: var(--pf-radius) var(--pf-radius) 0 0;
}

#inner_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--pf-border);
    margin-bottom: 10px;
}

.user {
    padding: 0 4px 8px;
    font-size: 0.88em;
    color: var(--pf-text-muted);
    white-space: nowrap;
}

.user time {
    color: var(--pf-text-muted);
}

.user .unread_links a {
    color: var(--pf-primary-dark);
    font-weight: 500;
}

.user .unread_links a:hover {
    color: var(--pf-primary);
}

#inner_wrap .news {
    padding: 0 0 8px 1ch;
    font-size: 0.88em;
    color: var(--pf-text-muted);
}

#inner_wrap .news h2 {
    color: var(--pf-primary-dark);
    font-weight: 600;
}

/* ============ LINKTREE / BREADCRUMBS ============ */
.navigate_section {
    padding: 6px 0 8px;
    float: left;
    width: 100%;
}

.navigate_section ul {
    margin: 6px 0 2px;
    padding: 6px 12px;
    font-size: 0.88em;
    overflow: hidden;
    background: var(--pf-primary-lighter);
    border: 1px solid var(--pf-border);
    border-radius: 20px;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}

.navigate_section ul li {
    float: none;
    display: inline-flex;
    align-items: center;
    padding: 2px 0;
    line-height: 1.4em;
    color: var(--pf-text);
    text-shadow: none;
}

.navigate_section ul li a,
.navigate_section ul li em {
    padding: 3px 8px;
    margin-top: 0;
    display: inline-block;
    color: var(--pf-primary-dark);
    font-weight: 500;
    border-radius: 14px;
    transition: var(--pf-transition);
}

.navigate_section ul li a:hover {
    background: var(--pf-primary-light);
    color: var(--pf-primary-darker);
    text-decoration: none;
}

.navigate_section ul li:last-child a,
.navigate_section ul li:last-child span {
    color: var(--pf-text);
    font-weight: 600;
}

.navigate_section ul li .dividers {
    color: #94a3b8;
    font-size: 0.8em;
    padding: 0 4px;
}

/* ============ CATEGORIAS (cat_bar) ============ */
.main_container {
    margin-bottom: 24px;
    background: var(--pf-card);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow);
    overflow: hidden;
    transition: var(--pf-transition);
}

.main_container:hover {
    box-shadow: var(--pf-shadow-hover);
}

div.cat_bar {
    background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-primary-dark) 100%);
    border-bottom: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    text-shadow: none;
    position: relative;
}

div.cat_bar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
}

.cat_bar.collapsed,
.cat_bar.cat_bar_round {
    border-radius: var(--pf-radius);
}

.cat_bar h3 {
    padding: 12px 16px 10px;
    font-weight: 600;
}

.cat_bar .desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12.5px;
    line-height: 1.5em;
    font-weight: normal;
    margin: -6px 0 6px 10px;
}

.cat_bar .desc a {
    color: #fff;
    font-weight: 600;
}

h3.catbg {
    overflow: hidden;
    font-size: 1.05em;
    font-family: inherit;
}

h3.catbg,
h3.catbg a,
h3.catbg a:hover {
    color: #fff;
}

h3.catbg a:hover {
    text-shadow: none;
    text-decoration: none;
    opacity: 0.9;
}

.toggle_up,
.toggle_down {
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toggle_up {
    border-width: 0 5px 6px 5px;
    border-color: transparent transparent #fff transparent;
}

.toggle_down {
    border-width: 6px 5px 0 5px;
    border-color: #fff transparent transparent transparent;
}

/* ============ BOARDS (cards) ============ */
.boardindex_table:not(:last-child) {
    margin-bottom: 0;
}

.up_contain {
    overflow: visible;
    border: none;
    border-bottom: 1px solid var(--pf-border);
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #fff;
    transition: var(--pf-transition);
    position: relative;
}

.up_contain:last-child {
    border-bottom: none;
}

.up_contain:hover {
    background: var(--pf-primary-lighter);
    box-shadow: inset 3px 0 0 var(--pf-primary);
}

.board_icon {
    text-align: center;
    padding: 12px;
    width: 72px;
    flex-shrink: 0;
    align-self: center;
}

.boardindex_table .board_icon {
    width: 72px;
}

.board_icon a {
    background: url(../images/boardicons.png) no-repeat;
    background-size: 90px;
    display: inline-block;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    filter: drop-shadow(0 2px 3px rgba(13, 27, 42, 0.15));
    transition: transform 0.2s ease;
}

.up_contain:hover .board_icon a {
    transform: scale(1.08);
}

.info {
    overflow: hidden;
    overflow-wrap: break-word;
    padding: 10px 8px;
    flex-grow: 1;
    align-self: center;
}

.boardindex_table .info {
    width: auto;
    flex: 1;
    min-width: 200px;
}

.info .subject {
    font-weight: 600;
    font-size: 1.1em;
    color: var(--pf-primary-dark);
    transition: color 0.15s;
}

.info .subject:hover {
    color: var(--pf-primary);
    text-decoration: none;
}

.board_description {
    color: var(--pf-text-muted);
    font-size: 0.9em;
    margin-top: 2px;
}

p.moderators {
    font-size: 0.85em;
    font-weight: 500;
    color: var(--pf-text-muted);
    margin-top: 4px;
}

p.moderators a {
    color: var(--pf-primary-dark);
}

.board_stats {
    width: auto;
    min-width: 120px;
    font-size: 0.85em;
    margin: 0;
    text-align: center;
    align-self: center;
    flex-shrink: 0;
}

.boardindex_table .board_stats {
    padding: 8px 14px;
}

.boardindex_table .board_stats p {
    border-left: 1px solid var(--pf-border);
    border-right: 1px solid var(--pf-border);
    padding: 4px 10px;
    font-size: 0.95em;
    color: var(--pf-text);
    background: var(--pf-bg);
    border-radius: 6px;
}

.lastpost {
    width: 26%;
    min-width: 180px;
    font-size: 0.86em;
    padding: 8px 10px;
    align-self: center;
    text-align: right;
    color: var(--pf-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lastpost a {
    color: var(--pf-primary-dark);
    font-weight: 500;
}

/* Sub-boards (filhos) */
.children {
    border-top: 1px solid var(--pf-border);
    padding: 8px 12px 8px 84px;
    width: 100%;
    background: var(--pf-bg);
}

.children p {
    font-size: 0.88em;
    color: var(--pf-text-muted);
}

.children a {
    color: var(--pf-primary-dark);
}

.children a.board_new_posts {
    font-weight: 600;
}

.children .new_posts {
    background: linear-gradient(135deg, var(--pf-warning), #f57c00);
}

/* ============ CONTEÚDO ============ */
#content_section {
    margin: 10px auto;
    clear: both;
}

#main_content_section {
    padding: 6px 16px 20px;
}

#main_content_section::after {
    content: "";
    display: block;
    clear: both;
}

/* ============ ROUNDFRAME / INFORMATION / TITLEBAR ============ */
.roundframe {
    margin: 10px 0 0;
    padding: 16px 20px;
    background: var(--pf-card);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius-sm);
    box-shadow: 0 2px 8px rgba(13, 27, 42, 0.05);
    overflow: auto;
}

.information {
    background: var(--pf-primary-lighter);
    overflow: auto;
    padding: 14px 16px;
    border: 1px solid var(--pf-border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin: 0 0 12px;
}

.information a:not(.button) {
    font-weight: 600;
}

.title_bar {
    border: 1px solid var(--pf-border);
    border-top: 3px solid var(--pf-primary);
    border-bottom: 1px solid var(--pf-border);
    background: #fff;
    color: var(--pf-text);
    border-radius: 8px 8px 0 0;
    margin: 8px 0 0;
}

h3.titlebg,
h4.titlebg,
.titlebg,
h3.subbg,
h4.subbg,
.subbg {
    background: none;
    color: var(--pf-text);
    font-family: inherit;
    font-weight: 600;
    overflow: hidden;
    padding: 8px 14px 7px;
    text-shadow: none;
}

.titlebg a,
.subbg a {
    color: var(--pf-primary-dark);
}

.sub_bar {
    border-bottom: 1px solid var(--pf-border);
    box-shadow: none;
    background: var(--pf-primary-lighter);
}

/* ============ TABELAS / WINDOWBG ============ */
.generic_list_wrapper,
.windowbg,
.approvebg,
.approvebg2 {
    background: #fff;
    border: 1px solid var(--pf-border);
}

.windowbg:nth-of-type(even),
.bg.even {
    background: #fff;
}

.windowbg:nth-of-type(odd),
.bg.odd {
    background: #f8fafc;
}

.windowbg:target {
    background: #fffde7;
    border-left: 3px solid var(--pf-primary);
}

tr.windowbg:hover {
    background: var(--pf-primary-lighter);
}

.windowbg.locked {
    background: #f1f5f9;
}

.windowbg.sticky {
    background: var(--pf-primary-lighter);
}

.windowbg.sticky.locked {
    background: #f8f5f0;
}

.windowbg.approvetopic {
    background: #fff3e0;
}

.windowbg.approvepost {
    background: #fce4ec;
}

.table_grid {
    border: 1px solid var(--pf-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.table_grid tr td {
    padding: 8px;
    border-bottom: 1px solid var(--pf-border);
}

/* ============ BLOCO DE CÓDIGO (dark github-style) ============ */
.bbc_code {
    display: block;
    font-family: "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace;
    font-size: 0.82em;
    background: var(--pf-code-bg);
    color: #c9d1d9;
    border: 1px solid var(--pf-code-border);
    border-radius: 8px;
    margin: 6px 0 10px;
    padding: 12px 16px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 30em;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
}

.bbc_code a {
    color: #58a6ff;
}

.codeheader,
.quoteheader {
    color: var(--pf-text-muted);
    font-size: 0.88em;
    font-weight: 600;
    padding: 0 2px;
}

.codeoperation {
    font-weight: normal;
}

.expand_code {
    max-height: none;
}

/* ============ BLOCKQUOTES ============ */
blockquote {
    margin: 0 0 10px;
    padding: 10px 14px;
    font-size: 0.88rem;
    border: 1px solid var(--pf-border);
    border-left: 4px solid var(--pf-primary);
    border-right: none;
    border-radius: 0 8px 8px 0;
    background: var(--pf-primary-lighter);
}

blockquote cite {
    display: block;
    border-bottom: 1px solid rgba(33, 150, 243, 0.2);
    font-size: 0.88em;
    margin-bottom: 4px;
    color: var(--pf-primary-dark);
    font-weight: 600;
}

blockquote cite::before {
    color: var(--pf-primary);
    font-size: 18px;
    font-style: normal;
    content: "\275D";
    margin-right: 4px;
    vertical-align: middle;
}

.bbc_standard_quote {
    background-color: var(--pf-primary-lighter);
}

.bbc_alternate_quote {
    background-color: #f8fafc;
}

/* ============ FOOTER ============ */
#footerfix {
    flex: 1 0 auto;
}

#footer {
    margin: 2.5em 0 0;
    padding: 18px 0;
    background: var(--pf-footer-bg);
    border-top: 3px solid var(--pf-primary);
    flex: none;
    box-shadow: 0 -4px 20px rgba(11, 21, 34, 0.2);
}

#footer .inner_wrap {
    max-width: 1280px;
    margin: 0 auto;
    width: 92%;
}

#footer li,
#footer p,
#footer a {
    font-size: 0.88em;
    color: #94a3b8;
}

#footer a:hover {
    color: #fff;
}

#footer li.copyright {
    display: block;
    font-family: Verdana, sans-serif;
    color: #64748b;
}

#footer .floatright a {
    color: #94a3b8;
}

#footer .floatright a:hover {
    color: var(--pf-primary);
}

/* ============ QUICKBUTTONS ============ */
.quickbuttons {
    margin: 0 0 8px;
    clear: right;
    float: right;
    text-align: right;
    display: flex;
    gap: 0;
}

.quickbuttons>li {
    float: none;
}

.quickbuttons>li>a,
.inline_mod_check {
    display: block;
    padding: 0 10px;
    color: var(--pf-text);
    line-height: 1.6rem;
    border-radius: 6px;
    border: 1px solid var(--pf-border);
    margin-left: -1px;
}

.quickbuttons>li:first-child>a {
    border-radius: 6px 0 0 6px;
}

.quickbuttons>li:last-child>a {
    border-radius: 0 6px 6px 0;
}

.quickbuttons>li:only-child>a {
    border-radius: 6px;
    margin: 0;
}

.quickbuttons>li:hover>a,
.quickbuttons>li>a:focus {
    border-color: var(--pf-primary);
    background: var(--pf-primary-lighter);
    color: var(--pf-primary-dark);
    text-decoration: none;
}

/* Menus dropdown dos quickbuttons */
.post_options ul {
    display: none;
    position: absolute;
    top: 100%;
    right: -1px;
    z-index: 90;
    padding: 6px;
    background: #fff;
    font-weight: normal;
    text-align: left;
    border: 1px solid var(--pf-border);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(13, 27, 42, 0.18);
}

.post_options ul a:hover,
.post_options ul a:focus {
    border-color: var(--pf-primary-light);
    background: var(--pf-primary-lighter);
    color: var(--pf-primary-dark);
}

/* ============ PAGINAÇÃO ============ */
.pagesection .button,
.pagelinks a,
.pagelinks span {
    border-radius: 6px;
}

.current_page {
    display: inline-block;
    min-width: 2em;
    text-align: center;
    padding: 0.15em 0.5em;
    background: var(--pf-primary);
    color: #fff !important;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid var(--pf-primary);
}

.nav_page {
    display: inline-block;
    padding: 0.15em 0.6em;
    color: var(--pf-primary-dark);
    border: 1px solid var(--pf-border);
    border-radius: 6px;
    background: #fff;
    transition: var(--pf-transition);
}

.nav_page:hover {
    background: var(--pf-primary-lighter);
    border-color: var(--pf-primary);
    text-decoration: none;
}

.pages {
    margin-right: 8px;
    font-weight: 600;
    color: var(--pf-text-muted);
    text-transform: uppercase;
    font-size: 0.85em;
}

/* ============ AVATARES ============ */
img.avatar {
    border-radius: 50%;
    border: 2px solid var(--pf-primary-light);
}

#profile_menu_top>img.avatar {
    height: 22px;
    width: 22px;
    margin: 2px 6px 0 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ============ NOTIFICAÇÕES / POPUPS DE TOPO ============ */
.popup_window {
    background: #fff;
    border: 1px solid var(--pf-border);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(13, 27, 42, 0.25);
}

.popup_heading {
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-primary-dark));
    color: #fff;
    padding: 10px 16px;
    font-weight: 600;
    border-radius: 12px 12px 0 0;
}

.unread_notify:hover {
    background: var(--pf-primary-lighter);
    cursor: pointer;
}

.unread_notify .subject {
    font-weight: 600;
}

/* ============ NOVOS POSTS / BADGES ============ */
.new_posts,
a.new_posts {
    display: inline-block;
    position: relative;
    top: -2px;
    padding: 1px 8px;
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-primary-dark));
    color: #fff;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 10px;
    opacity: 0.95;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.new_posts:hover {
    opacity: 1;
    text-decoration: none;
}

/* ============ INDICADORES ON/OFF ============ */
.on {
    background: var(--pf-success);
    border-color: #43a047;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
}

.off {
    background: #cbd5e1;
    border-color: #94a3b8;
}

/* ============ BARRAS DE PROGRESSO ============ */
.generic_bar,
.progress_bar {
    border: 1px solid var(--pf-border);
    background: #f8fafc;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.progress_bar .bar {
    background-color: var(--pf-primary);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
}

.generic_bar .bar {
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-primary-dark));
}

/* ============ CAIXAS DE ERRO / AVISO / INFO ============ */
.errorbox {
    background-color: #fef2f2;
    border-top: 3px solid var(--pf-danger);
    border-bottom: none;
    border-radius: 8px;
}

.noticebox {
    background: #fffbeb;
    border-top: 3px solid var(--pf-warning);
    border-bottom: none;
    border-radius: 8px;
}

.infobox {
    background: #f0fdf4;
    border-top: 3px solid var(--pf-success);
    border-bottom: none;
    border-radius: 8px;
}

/* ============ KEYFRAMES / ANIMAÇÕES ============ */
a,
.button,
.up_contain,
.main_container,
.board_icon a {
    transition: var(--pf-transition);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    #search_form input[type="search"] {
        width: 160px;
    }

    .lastpost {
        display: none;
    }
}

@media (max-width: 855px) {

    #top_section .inner_wrap,
    #wrapper,
    #header,
    #footer .inner_wrap {
        width: 96%;
    }

    #search_form {
        display: none;
    }

    .board_stats {
        display: none;
    }

    .children {
        padding-left: 84px;
    }
}

@media (max-width: 720px) {
    #header {
        padding: 14px 4%;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    h1.forumtitle {
        font-size: 1.5em;
    }

    #siteslogan {
        font-size: 0.95em;
        text-align: left;
        padding-left: 2px;
    }

    #inner_section {
        padding: 8px 10px 2px;
    }

    .board_icon {
        width: 60px;
        padding: 10px;
    }

    .boardindex_table .board_icon {
        width: 60px;
    }

    .children {
        padding-left: 74px;
    }

    .info .subject {
        font-size: 1em;
    }

    .up_contain {
        align-items: flex-start;
    }

    .lastpost {
        display: none;
    }
}

@media (max-width: 560px) {
    #main_menu {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    #main_menu .popup_window {
        border-radius: 12px;
    }

    #main_menu .popup_heading {
        border-radius: 12px;
    }

    .boardindex_table .info {
        min-width: 0;
    }

    .children {
        padding-left: 10px;
    }

    .children p {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 8px;
    }
}

@media (max-width: 480px) {
    #top_info .textmenu {
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        vertical-align: middle;
    }

    #top_section .inner_wrap,
    #wrapper,
    #footer .inner_wrap,
    #header {
        width: 98%;
    }

    h1.forumtitle img {
        max-height: 40px;
    }
}

@media (max-width: 320px) {

    #top_info .button_login>a span.textmenu,
    #top_info .button_signup>a span.textmenu {
        display: none;
    }

    .board_description,
    p.moderators {
        display: none;
    }
}

/* ============================================================
   DASHBOARD TÉCNICO — Página Inicial (Opção A)
   ============================================================ */

/* ============ HERO SECTION ============ */
.pf-hero {
    background:
        /* overlay escuro para legibilidade do texto e da pesquisa */
        linear-gradient(160deg, rgba(10, 14, 23, 0.75) 0%, rgba(10, 14, 23, 0.65) 55%, rgba(10, 14, 23, 0.8) 100%),
        /* imagem de fundo: placa de circuito / eletrónica */
        url('../images/electro.jpeg') center/cover no-repeat;
    border-bottom: 3px solid var(--pf-primary);
    padding: 60px 4% 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: -6px -16px 0;
}

.pf-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(33, 150, 243, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.pf-hero::after {
    content: "";
    position: absolute;
    bottom: -60%;
    right: -15%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(33, 150, 243, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.pf-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.pf-hero-logo {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.pf-hero-logo img {
    max-height: 64px;
    width: auto;
}

.pf-hero-slogan {
    color: #94a3b8;
    font-size: 1.05rem;
    margin-bottom: 30px;
}

/* Barra de pesquisa gigante */
#pf_search_form {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    background: #fff;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    gap: 0;
}

#pf_search_form input[type="search"] {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 12px 20px;
    background: transparent;
    color: var(--pf-text);
    border-radius: 50px;
    height: auto;
    box-shadow: none;
}

#pf_search_form input[type="search"]::placeholder {
    color: #94a3b8;
}

#pf_search_form input[type="search"]:focus {
    border: none;
    box-shadow: none;
    background: transparent;
}

#pf_search_form select {
    border: none;
    outline: none;
    background: var(--pf-bg);
    border-radius: 30px;
    padding: 0 12px;
    font-size: 0.85rem;
    color: var(--pf-text);
    margin: 4px;
    height: auto;
    box-shadow: none;
    width: auto;
}

#pf_search_form select:focus {
    border: none;
    box-shadow: none;
}

#pf_search_form button {
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-primary-dark));
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    height: auto;
    box-shadow: none;
}

#pf_search_form button:hover {
    background: linear-gradient(135deg, var(--pf-primary-dark), var(--pf-primary-darker));
    box-shadow: 0 4px 14px rgba(33, 150, 243, 0.4);
}

/* Texto de destaque */
.pf-hero-stats {
    margin-top: 40px;
    text-align: center;
}

.pf-hero-tagline {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ============ CATEGORIAS — SECÇÕES COM SUB-QUADROS ============ */
.pf-categories {
    margin-top: 30px;
}

.pf-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 18px;
}

.pf-section-title h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pf-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    font-family: inherit;
}

.pf-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Secção de categoria */
.pf-cat-section {
    background: var(--pf-card);
    border-radius: 14px;
    border: 1px solid var(--pf-border);
    box-shadow: 0 2px 12px rgba(13, 27, 42, 0.06);
    overflow: hidden;
    margin-bottom: 24px;
    transition: all 0.25s ease;
}

.pf-cat-section:hover {
    box-shadow: 0 8px 24px rgba(13, 27, 42, 0.12);
    border-color: var(--pf-primary);
}

/* Cabeçalho da categoria */
.pf-cat-head {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-primary-dark) 100%);
    color: #fff;
}

.pf-cat-head-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    overflow: hidden;
}

.pf-cat-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.pf-cat-head-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.3rem;
    color: #fff;
}

.pf-cat-head-icon a:hover {
    text-decoration: none;
    color: #fff;
    opacity: 0.9;
}

.pf-cat-head-info {
    flex: 1;
    min-width: 0;
}

.pf-cat-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.pf-cat-name a {
    color: #fff;
}

.pf-cat-name a:hover {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

.pf-cat-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

.pf-cat-head-stats {
    display: flex;
    gap: 16px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    flex-shrink: 0;
}

.pf-cat-head-stats span strong {
    color: #fff;
    font-size: 0.95rem;
}

/* Boards dentro da categoria */
.pf-cat-boards {
    padding: 0;
}

.pf-board-block {
    border-bottom: 1px solid var(--pf-border);
    padding: 14px 20px;
    transition: background 0.15s;
}

.pf-board-block:last-child {
    border-bottom: none;
}

.pf-board-block:hover {
    background: var(--pf-primary-lighter);
}

.pf-board-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pf-board-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-board-icon a {
    background: url(../images/boardicons.png) no-repeat;
    background-size: 90px;
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    filter: drop-shadow(0 2px 3px rgba(13, 27, 42, 0.15));
    transition: transform 0.2s ease;
}

.pf-board-block:hover .pf-board-icon a {
    transform: scale(1.08);
}

.pf-board-info {
    flex: 1;
    min-width: 0;
}

.pf-board-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pf-dark);
}

.pf-board-name a {
    color: var(--pf-dark);
}

.pf-board-name a:hover {
    color: var(--pf-primary-dark);
    text-decoration: none;
}

.pf-board-desc {
    font-size: 0.8rem;
    color: var(--pf-text-muted);
    margin-top: 2px;
}

.pf-board-stats {
    display: flex;
    gap: 14px;
    font-size: 0.75rem;
    color: var(--pf-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.pf-board-stat {
    background: var(--pf-bg);
    border: 1px solid var(--pf-border);
    border-radius: 8px;
    padding: 4px 10px;
    text-align: center;
}

.pf-board-stat strong {
    display: block;
    color: var(--pf-primary-dark);
    font-size: 0.9rem;
}

/* Sub-quadros (marcas de equipamentos) */
.pf-board-children {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--pf-border);
}

.pf-children-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}

.pf-children-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pf-child-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pf-primary-lighter);
    border: 1px solid var(--pf-border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    color: var(--pf-primary-dark);
    text-decoration: none;
    transition: all 0.2s;
}

.pf-child-chip:hover {
    background: var(--pf-primary-light);
    border-color: var(--pf-primary);
    color: var(--pf-primary-darker);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.pf-child-chip[data-new="1"] {
    background: linear-gradient(135deg, var(--pf-warning), #f57c00);
    border-color: #f57c00;
    color: #fff;
}

.pf-child-chip[data-new="1"]:hover {
    background: linear-gradient(135deg, #f57c00, #e65100);
    border-color: #e65100;
    color: #fff;
}

.pf-child-name {
    font-weight: 500;
}

.pf-child-count {
    background: rgba(255, 255, 255, 0.6);
    color: var(--pf-primary-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
}

.pf-child-chip[data-new="1"] .pf-child-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ============ ÚLTIMAS ATIVIDADES ============ */
.pf-recent-posts {
    margin-top: 40px;
    background: var(--pf-card);
    border-radius: 14px;
    border: 1px solid var(--pf-border);
    box-shadow: 0 2px 12px rgba(13, 27, 42, 0.06);
    overflow: hidden;
}

.pf-rp-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-primary-dark));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pf-rp-header a {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    opacity: 0.85;
}

.pf-rp-header a:hover {
    opacity: 1;
    color: #fff;
}

.pf-rp-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--pf-border);
    transition: background 0.15s;
}

.pf-rp-row:last-child {
    border-bottom: none;
}

.pf-rp-row:hover {
    background: var(--pf-primary-lighter);
}

.pf-rp-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pf-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--pf-primary-dark);
    font-size: 0.85rem;
    flex-shrink: 0;
    overflow: hidden;
}

.pf-rp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.pf-rp-title {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: var(--pf-dark);
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-rp-title a {
    color: var(--pf-dark);
}

.pf-rp-title a:hover {
    color: var(--pf-primary-dark);
}

.pf-rp-board {
    background: var(--pf-bg);
    color: var(--pf-primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.pf-rp-board a {
    color: var(--pf-primary-dark);
}

.pf-rp-time {
    font-size: 0.78rem;
    color: #94a3b8;
    white-space: nowrap;
}

/* ============ RESPONSIVE DASHBOARD ============ */
@media (max-width: 900px) {
    .pf-hero {
        padding: 40px 4% 50px;
    }

    .pf-hero-stats {
        gap: 24px;
    }

    #pf_search_form {
        flex-direction: column;
        border-radius: 20px;
    }

    #pf_search_form select {
        display: none;
    }

    #pf_search_form button {
        border-radius: 30px;
    }
}

@media (max-width: 600px) {
    .pf-hero-logo {
        font-size: 1.6rem;
    }

    .pf-hero-stats {
        gap: 16px;
    }

    .pf-stat-num {
        font-size: 1.2rem;
    }

    .pf-category-grid {
        grid-template-columns: 1fr;
    }

    .pf-rp-board {
        display: none;
    }
}
