/* ==========================================================
   Periferias Fórum — CSS
   Identidade: #035299 azul | #EF4B32 vermelho | #b1d3e5 azul claro
   Fonte: Roboto
========================================================== */

/* ----------------------------------------------------------
   LOGIN
---------------------------------------------------------- */
.pfo-login-wrapper {
    display: flex;
    justify-content: center;
    padding: 60px 16px;
}

.pfo-login-box {
    background: #fff;
    border: 1px solid #dde6ef;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(3,82,153,0.08);
}

.pfo-login-icon { margin-bottom: 16px; }

.pfo-login-box h2 {
    color: #035299;
    font-size: 1.4rem;
    margin: 0 0 8px;
}

.pfo-login-msg {
    color: #666;
    font-size: 14px;
    margin: 0 0 24px;
    line-height: 1.5;
}

.pfo-login-error {
    background: #fff3f3;
    border: 1px solid #fbb;
    border-radius: 6px;
    color: #c00;
    font-size: 14px;
    padding: 10px;
    margin-bottom: 16px;
}

.pfo-login-form { text-align: left; }

.pfo-login-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
}

.pfo-login-field label {
    font-size: 13px;
    font-weight: 700;
    color: #035299;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pfo-login-field input {
    padding: 10px 14px;
    border: 1.5px solid #c5d5e8;
    border-radius: 6px;
    font-size: 15px;
    font-family: Roboto, sans-serif;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.pfo-login-field input:focus {
    border-color: #035299;
    box-shadow: 0 0 0 3px rgba(3,82,153,0.1);
}

.pfo-login-btn {
    width: 100%;
    padding: 12px;
    background: #EF4B32;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    font-family: Roboto, sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}

.pfo-login-btn:hover { background: #d43c25; }

.pfo-login-forgot {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #666;
}

/* ----------------------------------------------------------
   BOTÕES GERAIS
---------------------------------------------------------- */
.pfo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    border-radius: 6px;
    border: none;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.pfo-btn--primary { background: #035299; color: #fff; }
.pfo-btn--primary:hover { background: #024280; color: #fff; }
.pfo-btn--ghost { background: transparent; border: 1.5px solid #c5d5e8; color: #666; }
.pfo-btn--ghost:hover { border-color: #035299; color: #035299; }

/* ----------------------------------------------------------
   FÓRUM — LISTA
---------------------------------------------------------- */
.pfo-forum-wrapper { font-family: Roboto, sans-serif; }

.pfo-forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #b1d3e5;
}

.pfo-forum-title {
    color: #035299;
    font-size: 1.5rem;
    margin: 0;
}

.pfo-forum-subtitle {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

.pfo-forum-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7f9fc;
    border: 1.5px solid #dde6ef;
    border-radius: 6px;
    padding: 8px 14px;
    margin-bottom: 20px;
}

.pfo-forum-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    flex: 1;
    font-family: Roboto, sans-serif;
}

/* Cards de tópico */
.pfo-topic-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.pfo-topic-item:hover {
    border-color: #b1d3e5;
    box-shadow: 0 2px 12px rgba(3,82,153,0.08);
}

.pfo-topic-item__avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pfo-topic-item__body { flex: 1; min-width: 0; }

.pfo-topic-item__title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #035299;
    text-decoration: none;
    margin-bottom: 4px;
}

.pfo-topic-item__title:hover { color: #EF4B32; }

.pfo-topic-item__excerpt {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pfo-topic-item__meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.pfo-topic-item__meta span {
    font-size: 12px;
    color: #888;
}

.pfo-meta-author { color: #035299 !important; font-weight: 600; }

/* Paginação */
.pfo-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e8eef5;
}

.pfo-page-btn {
    padding: 8px 16px;
    border: 1.5px solid #035299;
    border-radius: 6px;
    background: transparent;
    color: #035299;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.pfo-page-btn:hover:not(:disabled) { background: #035299; color: #fff; }
.pfo-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ----------------------------------------------------------
   FÓRUM — TÓPICO
---------------------------------------------------------- */
.pfo-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #035299;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 20px;
}

.pfo-back-link:hover { color: #EF4B32; }

.pfo-topic-post {
    background: #fff;
    border: 1px solid #dde6ef;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}

.pfo-topic-post__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.pfo-reply__avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.pfo-topic-post__title {
    font-size: 1.4rem;
    color: #035299;
    margin: 0 0 16px;
}

.pfo-topic-post__content {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.pfo-topic-post__content a { color: #035299; }
.pfo-topic-post__content ul { padding-left: 20px; }

/* Respostas */
.pfo-reply {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f4f8;
}

.pfo-reply:last-child { border-bottom: none; }

.pfo-reply__avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pfo-reply__body { flex: 1; min-width: 0; }

.pfo-reply__meta {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
    align-items: baseline;
}

.pfo-reply__author { font-weight: 700; color: #035299; font-size: 14px; }
.pfo-reply__time { font-size: 12px; color: #999; }

.pfo-reply__content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.pfo-reply__content a { color: #035299; }

/* Form de resposta */
.pfo-reply-form {
    display: flex;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #b1d3e5;
}

.pfo-reply-form__avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pfo-reply-form__editor { flex: 1; }
.pfo-reply-form__editor .pfo-btn { margin-top: 10px; }

/* ----------------------------------------------------------
   EDITOR LEVE
---------------------------------------------------------- */
.pfo-editor { border: 1.5px solid #c5d5e8; border-radius: 6px; overflow: hidden; }

.pfo-editor__toolbar {
    display: flex;
    gap: 2px;
    padding: 6px 8px;
    background: #f7f9fc;
    border-bottom: 1px solid #dde6ef;
}

.pfo-editor__btn {
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #035299;
    transition: background 0.15s;
}

.pfo-editor__btn:hover { background: #dde6ef; }

.pfo-editor__textarea {
    width: 100%;
    border: none;
    outline: none;
    padding: 10px 12px;
    font-size: 14px;
    font-family: Roboto, sans-serif;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
    color: #333;
}

/* ----------------------------------------------------------
   MODAL
---------------------------------------------------------- */
.pfo-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pfo-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.pfo-modal__box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 48px rgba(0,0,0,0.2);
    z-index: 1;
}

.pfo-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #dde6ef;
}

.pfo-modal__header h3 {
    color: #035299;
    margin: 0;
    font-size: 1.1rem;
}

.pfo-modal__close {
    background: none;
    border: none;
    font-size: 18px;
    color: #888;
    cursor: pointer;
    padding: 4px;
}

.pfo-modal__close:hover { color: #c00; }

.pfo-modal__body { padding: 24px; }

.pfo-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #dde6ef;
}

.pfo-field {
    margin-bottom: 16px;
}

.pfo-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #035299;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.pfo-field input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #c5d5e8;
    border-radius: 6px;
    font-size: 15px;
    font-family: Roboto, sans-serif;
    outline: none;
    box-sizing: border-box;
}

.pfo-field input[type="text"]:focus {
    border-color: #035299;
    box-shadow: 0 0 0 3px rgba(3,82,153,0.1);
}

/* ----------------------------------------------------------
   INBOX (página completa)
---------------------------------------------------------- */
.pfo-inbox-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    height: calc(100vh - 200px);
    min-height: 500px;
    border: 1px solid #dde6ef;
    border-radius: 10px;
    overflow: hidden;
    font-family: Roboto, sans-serif;
}

@media (max-width: 768px) {
    .pfo-inbox-wrapper { grid-template-columns: 1fr; }
}

.pfo-inbox-sidebar {
    border-right: 1px solid #dde6ef;
    display: flex;
    flex-direction: column;
    background: #f7f9fc;
}

.pfo-inbox-sidebar__header {
    padding: 16px;
    border-bottom: 1px solid #dde6ef;
}

.pfo-inbox-sidebar__header h2 {
    color: #035299;
    font-size: 1rem;
    margin: 0 0 10px;
}

.pfo-inbox-list { flex: 1; overflow-y: auto; }

.pfo-inbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #eef2f7;
    transition: background 0.15s;
    position: relative;
}

.pfo-inbox-item:hover,
.pfo-inbox-item.active { background: #eef3fb; }

.pfo-inbox-item__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pfo-inbox-item__body { flex: 1; min-width: 0; }

.pfo-inbox-item__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.pfo-inbox-item__name { font-size: 14px; font-weight: 700; color: #035299; }
.pfo-inbox-item__time { font-size: 11px; color: #aaa; }
.pfo-inbox-item__preview {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pfo-inbox-main {
    display: flex;
    flex-direction: column;
    background: #fff;
}

.pfo-inbox-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #aaa;
    font-size: 14px;
}

.pfo-inbox-chat {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.pfo-inbox-chat__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #dde6ef;
    font-weight: 700;
    color: #035299;
    font-size: 15px;
}

.pfo-inbox-chat__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.pfo-inbox-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pfo-inbox-input-wrap {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    padding: 12px 16px;
    border-top: 1px solid #dde6ef;
}

.pfo-inbox-input-wrap .pfo-editor { flex: 1; }
.pfo-inbox-input-wrap .pfo-btn { flex-shrink: 0; height: auto; padding: 10px 16px; }

/* ----------------------------------------------------------
   MENSAGENS (bolhas)
---------------------------------------------------------- */
.pfo-msg {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 75%;
}

.pfo-msg--me {
    align-items: flex-end;
    align-self: flex-end;
}

.pfo-msg__bubble {
    background: #f0f4f8;
    border-radius: 12px 12px 12px 2px;
    padding: 8px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    word-break: break-word;
}

.pfo-msg--me .pfo-msg__bubble {
    background: #035299;
    color: #fff;
    border-radius: 12px 12px 2px 12px;
}

.pfo-msg--me .pfo-msg__bubble a { color: #b1d3e5; }

.pfo-msg__time {
    font-size: 11px;
    color: #aaa;
    margin-top: 3px;
    padding: 0 4px;
}

/* ----------------------------------------------------------
   FLOAT WIDGET
---------------------------------------------------------- */
.pfo-float-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.pfo-float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    user-select: none;
}

.pfo-float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.pfo-float-btn--inbox { background: #035299; color: #fff; }
.pfo-float-btn--notif { background: #EF4B32; color: #fff; }

/* Badge */
.pfo-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #EF4B32;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    font-family: Roboto, sans-serif;
}

.pfo-float-btn--notif .pfo-badge { background: #fff; color: #EF4B32; }

.pfo-badge--sm {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
}

/* Painéis flutuantes */
.pfo-panel {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 320px;
    max-height: 480px;
    background: #fff;
    border: 1px solid #dde6ef;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9997;
    font-family: Roboto, sans-serif;
}

.pfo-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f7;
    font-weight: 700;
    color: #035299;
    font-size: 14px;
    flex-shrink: 0;
}

.pfo-panel__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pfo-panel__link {
    font-size: 12px;
    color: #888;
    font-weight: 400;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
}

.pfo-panel__link:hover { color: #035299; }

.pfo-panel__close {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
}

.pfo-panel__close:hover { color: #c00; }

.pfo-panel__search {
    padding: 8px 12px;
    border-bottom: 1px solid #eef2f7;
    flex-shrink: 0;
    position: relative;
}

.pfo-panel__search input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #dde6ef;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    font-family: Roboto, sans-serif;
    box-sizing: border-box;
}

.pfo-panel__list {
    flex: 1;
    overflow-y: auto;
}

.pfo-panel__loading {
    padding: 20px;
    text-align: center;
    color: #aaa;
    font-size: 13px;
}

/* Conversas no float */
.pfo-conv-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f4f8;
    transition: background 0.15s;
    position: relative;
}

.pfo-conv-item:hover { background: #f7f9fc; }

.pfo-conv-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Chat flutuante */
.pfo-chat-window {
    border-top: 1px solid #dde6ef;
    display: flex;
    flex-direction: column;
    max-height: 300px;
    flex-shrink: 0;
}

.pfo-chat__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f7f9fc;
    border-bottom: 1px solid #eef2f7;
    font-size: 13px;
    font-weight: 700;
    color: #035299;
}

.pfo-chat__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.pfo-chat__header .pfo-panel__close { margin-left: auto; }

.pfo-chat__messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
}

.pfo-chat__input-wrap {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    padding: 8px 10px;
    border-top: 1px solid #eef2f7;
}

.pfo-chat__input-wrap textarea {
    flex: 1;
    border: 1px solid #dde6ef;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    font-family: Roboto, sans-serif;
    outline: none;
    resize: none;
}

.pfo-chat__send {
    width: 34px;
    height: 34px;
    background: #035299;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.pfo-chat__send:hover { background: #EF4B32; }

/* ----------------------------------------------------------
   NOTIFICAÇÕES
---------------------------------------------------------- */
.pfo-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f4f8;
    text-decoration: none;
    transition: background 0.15s;
}

.pfo-notif-item:hover { background: #f7f9fc; }
.pfo-notif-item.unread { background: #eef3fb; }

.pfo-notif-item__icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }

.pfo-notif-item__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pfo-notif-item__body span { font-size: 13px; color: #333; }
.pfo-notif-item__body small { font-size: 11px; color: #aaa; }

/* ----------------------------------------------------------
   SUGESTÕES (autocomplete)
---------------------------------------------------------- */
.pfo-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dde6ef;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 100;
    margin-top: 2px;
}

.pfo-inbox-search-wrap { position: relative; }

.pfo-suggestion-item {
    padding: 9px 14px;
    font-size: 13px;
    cursor: pointer;
    color: #333;
    border-bottom: 1px solid #f0f4f8;
}

.pfo-suggestion-item:last-child { border-bottom: none; }
.pfo-suggestion-item:hover { background: #eef3fb; color: #035299; }

/* ----------------------------------------------------------
   UTILITÁRIOS
---------------------------------------------------------- */
.pfo-loading {
    padding: 20px;
    text-align: center;
    color: #aaa;
    font-size: 14px;
}

.pfo-empty {
    padding: 20px;
    text-align: center;
    color: #aaa;
    font-size: 14px;
}

.pfo-inbox-search-wrap { position: relative; }

/* ----------------------------------------------------------
   ABAS (tabs)
---------------------------------------------------------- */
.pfo-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #dde6ef;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pfo-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.pfo-tab:hover { color: #035299; }

.pfo-tab.active {
    color: #035299;
    border-bottom-color: #035299;
}

.pfo-tab[data-tab="new"] {
    color: #EF4B32;
}

.pfo-tab[data-tab="new"]:hover,
.pfo-tab[data-tab="new"].active {
    color: #EF4B32;
    border-bottom-color: #EF4B32;
}

/* ----------------------------------------------------------
   HEADER ATUALIZADO
---------------------------------------------------------- */
.pfo-forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.pfo-forum-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f7f9fc;
    border: 1.5px solid #dde6ef;
    border-radius: 20px;
    padding: 7px 14px;
    min-width: 220px;
}

.pfo-forum-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    font-family: Roboto, sans-serif;
    width: 100%;
}

/* ----------------------------------------------------------
   TAGS nos cards de tópico
---------------------------------------------------------- */
.pfo-topic-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.pfo-tag {
    display: inline-block;
    padding: 2px 10px;
    background: #eef3fb;
    color: #035299;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border: 1px solid #b1d3e5;
}

.pfo-tag:hover {
    background: #035299;
    color: #fff;
}

/* ----------------------------------------------------------
   FILTRO DE TAG ATIVO
---------------------------------------------------------- */
.pfo-tag-filter-active {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #eef3fb;
    border: 1px solid #b1d3e5;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #555;
}

.pfo-tag-filter-clear {
    margin-left: auto;
    color: #EF4B32;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}

.pfo-tag-filter-clear:hover { text-decoration: underline; }

/* ----------------------------------------------------------
   GRID DE TAGS (view de tags)
---------------------------------------------------------- */
.pfo-tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 8px 0 24px;
}

.pfo-tag-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 16px;
    background: #fff;
    border: 1.5px solid #dde6ef;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    text-align: center;
}

.pfo-tag-card:hover {
    border-color: #035299;
    background: #eef3fb;
    box-shadow: 0 2px 10px rgba(3,82,153,0.1);
}

.pfo-tag-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #035299;
}

.pfo-tag-card__count {
    font-size: 12px;
    color: #888;
}

/* ----------------------------------------------------------
   CAMPO DE TAGS NO MODAL
---------------------------------------------------------- */
.pfo-tag-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.pfo-tag-suggest-item {
    padding: 3px 10px;
    background: #eef3fb;
    color: #035299;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #b1d3e5;
    transition: background 0.15s;
}

.pfo-tag-suggest-item:hover {
    background: #035299;
    color: #fff;
}

/* ----------------------------------------------------------
   BOTÕES DE ADMIN (excluir tópico / tag)
---------------------------------------------------------- */
.pfo-topic-post__header {
    position: relative;
}

.pfo-btn-delete-topic {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    border: 1.5px solid #fbb;
    border-radius: 6px;
    color: #c00;
    font-size: 13px;
    font-weight: 600;
    font-family: Roboto, sans-serif;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.pfo-btn-delete-topic:hover {
    background: #c00;
    color: #fff;
    border-color: #c00;
}

.pfo-btn-delete-topic:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pfo-tag-card {
    position: relative;
}

.pfo-btn-delete-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1;
    color: #c00;
}

.pfo-tag-card:hover .pfo-btn-delete-tag {
    opacity: 1;
}

.pfo-btn-delete-tag:hover {
    background: #fff0f0;
}

/* ----------------------------------------------------------
   LOGIN — melhorias visuais
---------------------------------------------------------- */
.pfo-login-wrapper {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}

.pfo-login-box {
    background: #fff;
    border: 1px solid #dde6ef;
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(3,82,153,0.10);
}

@media (max-width: 480px) {
    .pfo-login-box { padding: 32px 20px; }
}

.pfo-login-icon {
    width: 80px;
    height: 80px;
    background: #eef3fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.pfo-login-box h2 {
    color: #035299;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px;
    font-family: Roboto, sans-serif;
}

.pfo-login-msg {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 28px;
}

.pfo-login-msg span {
    color: #035299;
    font-weight: 600;
}

.pfo-login-error {
    background: #fff3f3;
    border: 1px solid #fbb;
    border-radius: 8px;
    color: #c00;
    font-size: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
    text-align: left;
}

.pfo-login-form { text-align: left; }

.pfo-login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.pfo-login-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #035299;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pfo-login-field input {
    padding: 11px 14px;
    border: 1.5px solid #c5d5e8;
    border-radius: 8px;
    font-size: 15px;
    font-family: Roboto, sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
    color: #333;
}

.pfo-login-field input:focus {
    border-color: #035299;
    box-shadow: 0 0 0 3px rgba(3,82,153,0.1);
}

.pfo-login-btn {
    width: 100%;
    padding: 13px;
    background: #EF4B32;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: Roboto, sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pfo-login-btn:hover {
    background: #d43c25;
    transform: translateY(-1px);
}

.pfo-login-forgot {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #888;
    text-decoration: none;
}

.pfo-login-forgot:hover {
    color: #035299;
    text-decoration: underline;
}
