#<?php echo esc_attr($instance_id); ?> .badge-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 10px;
    align-items: center;
}
#<?php echo esc_attr($instance_id); ?> img.badge {
    width: 64px; height: 64px; object-fit: contain; display: block;
}
#<?php echo esc_attr($instance_id); ?> .badge-modal {
    position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
    background: rgba(0,0,0,.6); z-index: 9999; padding: 20px;
}
#<?php echo esc_attr($instance_id); ?> .badge-modal-content {
    background: var(--card-bg, #111); max-width: 900px; width: 100%;
    border-radius: 12px; padding: 16px; max-height: 80vh; overflow: hidden;
}
#<?php echo esc_attr($instance_id); ?> .badge-scroll {
    overflow: auto; max-height: 70vh; padding-right: 6px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 12px;
}
#<?php echo esc_attr($instance_id); ?> .close-badge-modal {
    float: right; cursor: pointer; font-size: 28px; line-height: 1;
}
#<?php echo esc_attr($instance_id); ?> .no-badges { margin: .5rem 0; }

.stats-box {
    border: 1px solid #2c2c2c;
    padding: 10px;
    border-radius: 8px;
    background: #1b1c1f;
    text-align: center;
}
.stats-box h3 {
    color: #3366ff;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}
.stats-box p {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}
.stats-number {
    font-size: 28px;
    font-weight: bold;
    color: #3366ff;
}

body {
    background: #0d0e11;
    font-family: "Segoe UI", sans-serif;
    color: #fff;
}

.perfil-container {
    max-width: 1050px;
    margin: 0 auto;
    background: #131417;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
}

.perfil-header {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.perfil-avatar-wrapper {
    position: relative;
    width: 220px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a1a;
    border: 2px solid #2c2c2c;
}

.perfil-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.perfil-avatar-wrapper:hover .avatar-upload-overlay {
    opacity: 1;
}

.avatar-upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 20px;
}

.avatar-upload-overlay input[type="file"],
.avatar-upload-overlay input[type="submit"] {
    margin-top: 10px;
    background: #4c6ef5;
    border: none;
    padding: 10px 14px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
}

.perfil-info h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
}

.perfil-info p {
    color: #aaa;
    margin: 5px 0;
}

.perfil-info ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    font-size: 15px;
}

.perfil-info ul li {
    margin: 6px 0;
}

.perfil-info ul li strong {
    color: #fff;
}
	.butn_conf{
	max-width: 1050px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
	}
.butn_conf a.config-button {
	font-size: 13px;
    display: inline-block;
    margin-top: 0;
    color: #abc4ed;
    padding: 6px 13px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease
}

.perfil-info a.config-button:hover {
    background: #6a7fff;
}

@media screen and (max-width: 768px) {
    .perfil-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
	.perfil-detalhes {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1;
}

.perfil-biografia {
    background: #1b1c1f;
    padding: 20px 25px;
    border-radius: 10px;
    border: 1px solid #2c2c2c;
}

.perfil-biografia h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 600;
}

.perfil-biografia p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
}
.favoritos-container {
    background: #1b1c1f;
    padding: 20px 25px;
    border-radius: 10px;
    border: 1px solid #2c2c2c;
}
/* Responsivo: Desktop */
@media screen and (min-width: 769px) {
    .perfil-header {
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    .perfil-detalhes {
        flex-direction: column;
    }
}

.badge-container {
    max-width: 1050px;
    margin: 30px auto;
    background: #131417;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #2c2c2c;
}

.badge-container h2 {
    margin: 0 0 15px;
    font-size: 22px;
    font-weight: 600;
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.badge {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    background: #222;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
}

.badge-toggle {
    margin-top: 15px;
    padding: 8px 18px;
    border: none;
    background: #4c6ef5;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.badge-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.badge-modal-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    width: 90%;
    max-width: 600px;
    border: 1px solid #333;
}

.badge-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.close-badge-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
}

.close-badge-modal:hover {
    color: white;
}
.favorites-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 8px;
	margin-top: 15px;
}

.favorite-thumb {
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #2970ec;
    transition: transform .2s, border-color .2s;
    aspect-ratio: 2 / 3; /* mantém proporção de capa vertical */
}

.favorite-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media screen and (max-width: 600px) {
    .favorites-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
}
