.instant-gamify-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99999;
    max-width: 340px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    box-shadow: 0 12px 32px rgba(0,0,0,.22);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease;
    font-size: 14px;
    line-height: 1.35;
}
.instant-gamify-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.instant-gamify-toast.is-info {
    background: #374151;
}
.instant-gamify-badge-toast {
    display: flex;
    gap: 10px;
    align-items: center;
}
.instant-gamify-badge-toast img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex: 0 0 auto;
}
.gamify-card {
    border-radius: 18px;
    overflow: hidden;
}
.gamify-balance-number {
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
}
.gamify-progress {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(127,127,127,.18);
}
.gamify-progress-bar {
    height: 100%;
    width: 0;
    background: currentColor;
    transition: width .25s ease;
}
button[data-gamify-checkin].is-done {
    opacity: .75;
    cursor: default;
}
.instant-gamify-leaderboard-widget {
    background: var(--bs-body-bg, #fff);
    border-radius: 6px;
    overflow: hidden;
}
.instant-gamify-widget-title {
    padding: 16px 18px 14px;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--bs-body-color, #0f172a);
}
.instant-gamify-widget-list {
    padding: 0 16px 8px;
}
.instant-gamify-widget-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 10px 12px;
    margin-bottom: 5px;
    background: rgba(127,127,127,.12);
    border-radius: 3px;
}
.instant-gamify-widget-rank {
    width: 28px;
    flex: 0 0 28px;
    text-align: center;
    font-size: 36px;
    line-height: 1;
    font-weight: 800;
    color: #a4adb7;
}
.instant-gamify-widget-avatar {
    position: relative;
    flex: 0 0 auto;
}
.instant-gamify-widget-avatar img,
.instant-gamify-full-avatar img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 999px;
}
.instant-gamify-widget-user {
    min-width: 0;
    flex: 1 1 auto;
}
.instant-gamify-widget-name,
.instant-gamify-full-name {
    display: block;
    font-weight: 800;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.instant-gamify-widget-name {
    font-size: 16px;
}
.instant-gamify-widget-points,
.instant-gamify-full-meta {
    color: #8d98a5;
    font-size: 13px;
    line-height: 1.25;
}
.instant-gamify-widget-badge,
.instant-gamify-full-badge,
.instant-gamify-badge-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #b45309, #ef4444);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 3px 10px rgba(0,0,0,.16);
}
.instant-gamify-widget-badge img,
.instant-gamify-full-badge img,
.instant-gamify-badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}
.instant-gamify-widget-more {
    display: block;
    padding: 12px 18px 16px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
}
.instant-gamify-empty {
    color: #8d98a5;
    text-align: center;
    padding: 16px;
}
.instant-gamify-leaderboard-full {
    overflow: hidden;
}
.instant-gamify-full-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: rgba(127,127,127,.10);
    border-bottom: 4px solid var(--bs-body-bg, #fff);
}
.instant-gamify-full-rank {
    width: 44px;
    flex: 0 0 44px;
    text-align: center;
    font-size: 44px;
    line-height: 1;
    font-weight: 800;
    color: #a4adb7;
}
.instant-gamify-full-avatar img {
    width: 68px;
    height: 68px;
}
.instant-gamify-full-user {
    min-width: 0;
    flex: 1 1 auto;
}
.instant-gamify-full-name {
    font-size: 22px;
}
.instant-gamify-full-badge,
.instant-gamify-badge-icon.big {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    font-size: 22px;
}
.instant-gamify-badge-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(127,127,127,.14);
}
.instant-gamify-badge-line:last-child {
    border-bottom: 0;
}
.instant-gamify-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
}
.instant-gamify-badge-box {
    text-align: center;
    padding: 16px 10px;
    border-radius: 16px;
    background: rgba(127,127,127,.10);
}
.instant-gamify-badge-box strong,
.instant-gamify-badge-box small {
    display: block;
}
.instant-gamify-badge-box strong {
    margin-top: 10px;
}
.instant-gamify-badge-box small {
    color: #8d98a5;
}
.instant-gamify-periods .btn {
    margin: 2px;
}
@media (max-width: 600px) {
    .instant-gamify-toast {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
    .instant-gamify-full-row {
        gap: 10px;
        padding: 14px 12px;
    }
    .instant-gamify-full-rank {
        width: 34px;
        flex-basis: 34px;
        font-size: 34px;
    }
    .instant-gamify-full-avatar img {
        width: 52px;
        height: 52px;
    }
    .instant-gamify-full-name {
        font-size: 17px;
    }
    .instant-gamify-full-badge {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}


/* =========================================================
   GAMIFY BADGES CSS FIX - InstantBlog
   Mantém badges PNG/WEBP proporcionais, sem crop, sem deformar
   e sem herdar estilos de avatar, share buttons ou tema escuro/claro.
   ========================================================= */
.instant-gamify-badge-icon,
.instant-gamify-widget-badge,
.instant-gamify-full-badge {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    flex: 0 0 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    padding: 4px !important;
    border-radius: 14px !important;
    background: rgba(127,127,127,.12) !important;
    color: inherit !important;
    box-shadow: none !important;
    line-height: 1 !important;
}
.instant-gamify-badge-icon.big {
    width: 82px !important;
    height: 82px !important;
    min-width: 82px !important;
    flex: 0 0 82px !important;
    padding: 7px !important;
    border-radius: 20px !important;
    font-size: 28px !important;
}
.instant-gamify-full-badge {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    flex: 0 0 58px !important;
    border-radius: 18px !important;
    padding: 6px !important;
}
.instant-gamify-badge-icon img,
.instant-gamify-widget-badge img,
.instant-gamify-full-badge img,
.instant-gamify-badge-toast img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: transparent !important;
    box-shadow: none !important;
}
.instant-gamify-badge-box {
    min-height: 154px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
}
.instant-gamify-badges-grid {
    align-items: stretch !important;
}
.instant-gamify-badge-line .instant-gamify-badge-icon {
    align-self: center !important;
}
.instant-gamify-widget-avatar img,
.instant-gamify-full-avatar img {
    object-fit: cover !important;
    border-radius: 999px !important;
    padding: 0 !important;
}
.instant-gamify-widget-badge span,
.instant-gamify-full-badge span,
.instant-gamify-badge-icon span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}
@media (max-width: 600px) {
    .instant-gamify-badge-icon.big {
        width: 72px !important;
        height: 72px !important;
        min-width: 72px !important;
        flex-basis: 72px !important;
    }
    .instant-gamify-full-badge {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        flex-basis: 48px !important;
    }
}
