.comunidade-toggle-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.btn-toggle {
    background: #111;
    border: 1px solid #333;
    color: #888;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    transition: 0.3s;
}
.btn-toggle.active {
    background: #890000;
    color: white;
    border-color: #ff0000;
}

.secao-header {
    max-width: 250px;
    margin: 0 auto 10px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
}

.secao-header:hover {
    background: #1a1a1a;
}

.secao-header h2 {
    margin: 0;
    font-size: 1.0rem;
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;
}

.toggle-icon {
    font-size: 1.2rem;
    color: #888;
    transition: transform 0.3s ease;
    position: absolute;
    right: 25px; 
}

.comunidade-grid {
    display: flex;     
    flex-wrap: wrap;         
    justify-content: center;
    gap: 15px;   
    padding: 25px;
    animation: fadeIn 0.4s ease;
    width: 100%;
    max-width: 1200px;  
    margin: 0 auto;     
}

.card-usuario-comunidade {
    width: 100%; 
    max-width: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px;
    gap: 5px;
    transition: transform 0.5s;
}

.header-tier {
    width: 100%;
    padding-bottom: 10px;
}

.bloco-tier-central {
    flex: 1;
    display: flex;
    justify-content: center;
    text-align: center;
}

.tier-1 { color: #ffffff; }
.tier-2 { color: #e07e7e; }
.tier-3 { color: #ff0000; text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); }
.criador { color: #0077ff; text-shadow: 0 0 15px rgba(38, 0, 255, 0.7); }

.corpo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-top: 10px;
}

.info-usuario-comunidade {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.avatar-wrapper-comunidade {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 15px auto; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image-comunidade {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;
}

.profile-avatar-placeholder {
    font-size: 65px;
    color: #444;
    z-index: 1;
    line-height: 1;
}

.moldura-overlay-comunidade {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%) scale(1.0); 
    width: 240px;
    height: 110px;
    z-index: 2;
    pointer-events: none;
    object-fit: contain;
}

.titulos-lista {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
}

.titulo-tier {
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.titulo-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    color: #aaa;
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 3px;
    width: fit-content;
}

.nome-usuario {
    margin: 0;
    font-size: 1.0rem;
    color: #ffffff;
    font-weight: 600;
    width: 100%;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
}

.tier-usuario {
    color: #890000;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 5px;
}

.antigo-apoiador {
    opacity: 0.8;
    filter: grayscale(20%);
    border: 1px dashed #444;
}

.card-hb-comunidade {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    width: 200px;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 8px;
}
.hb-tipo-tag {
    font-size: 0.6rem;
    color: #aaa;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
    text-transform: uppercase;
}
.hb-nome { font-size: 1rem; color: #fff; margin: 0; }

.hb-autor { font-size: 0.75rem; color: #666; margin: 0; }

.hb-autor span { color: #890000; }

.link-autor-hb {
    color: #890000;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.link-autor-hb:hover {
    color: #a80000;
}

.hb-resumo { font-size: 0.8rem; color: #aaa; margin: 5px 0; }
.btn-abrir-hb {
    background: #890000;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: auto;
}

.hb-info-column .info-badge {
    width: fit-content;
    display: inline-block;
    padding: 4px 10px;
    margin: 0;
}

.info-badge {
    color: #b1b1b1;
}

.btn-like-hb {
    background: transparent;
    border: none;
    color: #bbb;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    transition: 0.2s ease;
}

.btn-like-hb i {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-like-hb:hover i {
    color: #890000;
}

.btn-like-hb i.fa-solid {
    color: #890000;
}

.hb-list-section {
    margin-bottom: 25px;
    text-align: left;
}

.hb-list-header {
    color: #890000;
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-family: 'Cinzel', serif;
}

.hb-list-content {
    border-left: 2px solid #890000;
    padding-left: 15px;
    margin-left: 2px;
}

.hb-sub-item {
    margin-bottom: 12px;
}

.sub-title {
    color: #ffffff;
    font-weight: bold;
    font-size: 0.95rem;
    display: block;
}

.sub-desc {
    color: #bbbbbb;
    font-size: 0.9rem;
    margin: 4px 0 0 15px;
    line-height: 1.4;
}

.hb-attributes-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px;
    margin-top: 10px;
}

.atributo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.atributo-label {
    font-size: 0.75rem;
    color: #ccc;
    font-weight: bold;
    font-family: 'Cinzel', serif; 
}

.atributo-box {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

.swal2-backdrop-show {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.7) !important;
}

.hb-card-popup {
    border: 2px solid #890000 !important;
    box-shadow: 0 0 25px rgba(137, 0, 0, 0.3);
    border-radius: 12px !important;
}

.swal2-title {
    padding-top: 20px !important;
    font-family: 'Cinzel', serif;
}

.empty-message {
    text-align: center;
    color: #666;
    margin-top: 50px;
    font-style: italic;
}

.hb-toolbar-comunidade {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 25px auto;
    padding: 0 25px;
}

.hb-search-bar {
    position: relative;
    width: 100%;
}

.hb-search-bar input {
    width: 100%;
    background-color: #1E1E1E;
    border: 1px solid #890000;
    color: white;
    padding: 14px 15px 14px 45px;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    height: 50px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #890000;
    font-size: 1.1rem;
    pointer-events: none;
}

.btn-filter-hb:hover, .btn-filter-hb.ativo {
    color: #890000;
}

.btn-filter-hb {
    background: none;  
    border: none;
    color: white;
    width: 40px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
}

.hb-filter-container {
    position: relative;
    display: inline-block;
}

.search-group {
    flex-grow: 1;
    max-width: 600px;
}

.hb-dropdown-content {
    display: none;
    position: absolute;
    top: 55px;
    left: 0;
    background-color: #1a1a1a;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.8);
    border: 1px solid #333;
    border-radius: 8px;
    z-index: 100;
    overflow: hidden;
}

.hb-dropdown-content a {
    color: #ccc;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background 0.2s;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
}

.hb-dropdown-content a:hover {
    background-color: #890000;
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hb-resumo {
    font-size: 0.85rem;
    color: #aaaaaa;
    margin: 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word; 
}

.hb-resumo p {
    display: inline;
    margin: 0;
}

.hb-resumo strong,
.hb-resumo b {
    display: inline !important;
    color: #890000 !important;
    font-weight: bold !important;
}

.hb-resumo ul, 
.hb-resumo ol {
    margin: 0;
    padding-left: 20px;
}

.swal2-html-container {
    color: #cccccc !important; 
    text-align: left !important;
    font-size: 0.95rem;
    line-height: 1.6;
}

.swal2-html-container p {
    margin-bottom: 12px;
    color: #cccccc !important;
}
.swal2-html-container p:last-child {
    margin-bottom: 0;
}

.swal2-html-container strong,
.swal2-html-container b {
    display: inline !important;
    color: #890000 !important;
    font-weight: bold !important;
}

.swal2-html-container em,
.swal2-html-container i {
    color: #dddddd;
    font-style: italic;
}

.swal2-html-container u {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: #cccccc;
}
.swal2-html-container s {
    text-decoration: line-through;
    opacity: 0.6; 
}

.swal2-html-container ul,
.swal2-html-container ol {
    margin-top: 8px !important;
    margin-bottom: 15px !important;
    padding-left: 25px !important;
}

.swal2-html-container li {
    margin-bottom: 5px;
    color: #cccccc !important;
}