/* Estilos Principais para Perfil de Criador */
:root {
    --hot-red: #FF3333;
    --neon-red: #FF4D4D;
    --gradient-hot: linear-gradient(135deg, #FF3333, #FF1A1A);
    --gradient-dark: linear-gradient(to bottom, rgba(10,10,10,0.9), rgba(10,10,10,0.8));
    --dark-bg: #121212;
    --darker-bg: #0A0A0A;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --shadow-neon: 0 0 15px rgba(255, 51, 51, 0.3);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Container Principal */
.hb-profile-container {
    min-height: 100vh;
    background-color: var(--dark-bg);
    padding-bottom: 3rem;
}

/* Banner de Capa */
.hb-profile-banner {
    height: 35vh;
    min-height: 280px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Header do Perfil */
.profile-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    position: relative;
    margin-top: -80px;
    z-index: 10;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Avatar do Perfil */
.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
    border: 4px solid var(--hot-red);
    background: var(--darker-bg);
    box-shadow: var(--shadow-neon);
    z-index: 2;
    position: relative;
    flex-shrink: 0;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-photo:hover img {
    transform: scale(1.05);
}

/* Informações do Perfil */
.profile-info {
    flex: 1;
    padding-top: 1rem;
}

.profile-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    background: var(--gradient-hot);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Username e Indicadores - Layout corrigido */
.profile-username {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    font-weight: normal;
}

/* Badge de verificado - ajustado para posição correta */
.verified-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--hot-red);
    border-radius: 50%;
    margin-left: 8px;
    color: white;
    font-size: 12px;
}

.verified-badge svg {
    width: 12px;
    height: 12px;
    fill: white;
}

/* Indicador de online - posicionado corretamente */
.online-badge {
    background: #2ecc71;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    position: relative;
    top: 0;
    animation: pulse 2s infinite;
}

/* Indicador de offline - variação do badge online */
.offline-badge {
    background: #95a5a6;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    position: relative;
    top: 0;
}

/* Animação de pulse para indicador online */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(46, 204, 113, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

/* Social Badges */
.social-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.social-badges a {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.social-badges a:hover {
    color: var(--hot-red);
}

/* Estatísticas do Perfil */
.profile-stats {
    display: flex;
    gap: 2rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Ações do Perfil */
.profile-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.subscribe-btn {
    background: var(--gradient-hot);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-neon);
}

.subscribe-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 51, 51, 0.4);
}

/* Abas de Conteúdo */
.profile-tabs {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.profile-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(255, 51, 51, 0.1);
    border-color: rgba(255, 51, 51, 0.3);
    color: white;
}

.tab-btn.active {
   background: var(--hot-red);
    border-color: var(--hot-red);
    color: white;
    box-shadow: 0 4px 12px rgba(255,45,85,0.3);
}

/* Conteúdo das Abas */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Grid de Conteúdo */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Cards de Conteúdo */
.content-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /*opacity: 0;*/
    transform: translateY(20px);
}

.content-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.content-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-dark);
    border-color: rgba(255, 51, 51, 0.3);
}

.thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.content-card:hover .thumbnail img {
    transform: scale(1.1);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.content-card:hover .thumbnail-overlay {
    opacity: 0.9;
}

/* Ajuste para o background dos cards exclusivos - VERSÃO OTIMIZADA */
#exclusive .content-card .thumbnail {
    position: relative;
    overflow: hidden;
    background-color: #000000; /* Fundo preto como base */
}

/* Esconde a imagem original */
#exclusive .content-card .thumbnail img {
    opacity: 0; /* Torna a imagem invisível */
    width: 100%;
    height: 100%;
}

/* Adiciona uma imagem de fundo convidativa (semelhante a um preview borrado) */
#exclusive .content-card .thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/placeholder.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.3); /* Efeito borrado e escurecido */
    z-index: 1;
}

/* Adiciona o ícone de cadeado em chamas no centro */
#exclusive .content-card .thumbnail::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    transform: translate(-50%, -50%);
    background-image: url('/images/backgrounds/lock-fire.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(255, 51, 51, 0.6));
}

/* Garante que os elementos dentro do thumbnail ficam acima das imagens de fundo */
#exclusive .content-card .thumbnail .content-badge,
#exclusive .content-card .thumbnail .content-duration,
#exclusive .content-card .thumbnail .play-icon {
    position: relative;
    z-index: 3;
}

/* Oculta o ícone de cadeado original para evitar duplicação */
#exclusive .content-card .thumbnail .content-lock {
    display: none;
}

.content-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.content-badge.exclusive {
    background: var(--gradient-hot);
    color: white;
}

.content-badge.vip {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.content-badge.pack {
    background: linear-gradient(135deg, #9733EE, #DA22FF);
    color: white;
}

.content-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: white;
    z-index: 2;
}

.content-items {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: white;
    z-index: 2;
}

.play-icon, .pack-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.content-card:hover .play-icon,
.content-card:hover .pack-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.content-lock {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hot-red);
    z-index: 2;
}

.content-info {
    padding: 1rem;
}

.content-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.8rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-price {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--hot-red);
}

.content-likes {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.content-likes svg {
    color: #FF6B6B;
}

/* Estilos para o Estado Vazio */
.empty-content {
    grid-column: 1 / -1;
    padding: 3rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.empty-icon {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.empty-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-login {
    background: var(--gradient-hot);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon);
}

/* Aba Sobre */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-bio {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-bio h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--hot-red);
}

.bio-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Opções de Assinatura */
.subscription-options {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.subscription-options h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--hot-red);
}

.subscription-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.subscription-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.subscription-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 51, 51, 0.3);
}

.subscription-card.premium {
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.1), rgba(255, 26, 26, 0.05));
    border: 2px solid var(--hot-red);
    transform: scale(1.05);
}

.subscription-card.premium:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: var(--shadow-neon);
}

.popular-tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--hot-red);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.card-header {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--hot-red);
    margin-bottom: 1.5rem;
}

.card-price span {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-secondary);
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.card-features li svg {
    color: var(--hot-red);
    flex-shrink: 0;
}

.btn-subscribe {
    background: var(--gradient-hot);
    color: white;
    border: none;
    padding: 0.8rem 0;
    width: 100%;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon);
}

.btn-premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: black;
}



@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.5rem;
    margin: 0;
}

/* Estilos para o modal de preview */
#previewModal .preview-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    background-color: #000;
    overflow: hidden;
    border-radius: 8px;
}

#previewModal .preview-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

#previewModal .preview-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

#previewModal .no-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: #000;
}

/* Adicione estes estilos ao seu CSS */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-backdrop.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.modal-backdrop.show {
    opacity: 0.5;
}

body.modal-open {
    overflow: hidden;
}

/* Evitar que os modais apareçam juntos */
body.modal-open .modal + .modal-backdrop.show {
    z-index: 1060;
}

body.modal-open .modal.show:nth-child(2) {
    z-index: 1065;
}

.close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--hot-red);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--hot-red);
    box-shadow: 0 0 0 2px rgba(255, 51, 51, 0.2);
}

.btn-block {
    display: block;
    width: 100%;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

.btn-primary {
    background: var(--gradient-hot);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon);
}

.btn-outline-primary {
    background: transparent;
    color: var(--hot-red);
    border: 1px solid var(--hot-red);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: rgba(255, 51, 51, 0.1);
    transform: translateY(-3px);
}

/* Animações para os Cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para modal de prévia */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-modal.show {
    opacity: 1;
}

.preview-container {
    width: 90%;
    max-width: 800px;
    background: var(--darker-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.preview-modal.show .preview-container {
    transform: scale(1);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close-preview {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.preview-content {
    padding: 0;
}

.preview-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    position: relative;
}

.preview-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.preview-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    animation: pulse 2s infinite;
}

.preview-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.preview-info {
    padding: 1.5rem;
    text-align: center;
}

.preview-info p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.preview-action {
    display: flex;
    justify-content: center;
}

.btn-preview-buy, .btn-preview-vip {
    background: var(--gradient-hot);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-preview-vip {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: black;
}

.btn-preview-buy:hover, .btn-preview-vip:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon);
}

/* Abas do Modal de Login */
.login-benefits {
    margin-bottom: 1.5rem;
    background: rgba(255, 51, 51, 0.05);
    border: 1px solid rgba(255, 51, 51, 0.2);
    border-radius: 10px;
    padding: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.login-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.tab-button {
    flex: 1;
    background: none;
    border: none;
    padding: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button.active {
    color: var(--hot-red);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--hot-red);
}

.login-tab-content {
    display: none;
}

.login-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.social-login {
    text-align: center;
    position: relative;
}

.social-login p {
    position: relative;
    z-index: 1;
    background: var(--darker-bg);
    display: inline-block;
    padding: 0 1rem;
    color: var(--text-secondary);
}

.social-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-google {
    color: #FFFFFF;
}

.btn-facebook {
    color: #1877F2;
}

.login-security {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Responsividade */
@media (max-width: 992px) {
    .profile-header {
        margin-top: -60px;
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
    }
    
    .profile-name {
        font-size: 1.8rem;
    }
    
    .about-section {
        grid-template-columns: 1fr;
    }
    
    .subscription-cards {
        grid-template-columns: 1fr;
    }
    
    .subscription-card.premium {
        transform: none;
    }
    
    .subscription-card.premium:hover {
        transform: translateY(-5px);
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .profile-banner {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -70px;
    }
    
    .profile-photo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .profile-info {
        width: 100%;
        text-align: center;
    }
    
    .profile-username {
        justify-content: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .profile-actions {
        width: 100%;
        justify-content: center;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .social-badges {
        justify-content: center;
    }
    
    .empty-content {
        padding: 2rem 1rem;
    }
    
    .empty-content h3 {
        font-size: 1.3rem;
    }
    
    .about-bio, 
    .subscription-options {
        padding: 1.5rem;
    }
    
    .about-bio h3,
    .subscription-options h3 {
        font-size: 1.3rem;
    }
    
    .modal-dialog {
        width: 95%;
    }
    
    .modal-content {
        max-width: 100%;
    }
    
    .profile-tabs {
        padding-bottom: 0.5rem;
        margin: 1.5rem 0;
    }
    
    /* Ajustes para indicadores em tela média */
    .verified-badge, .online-badge, .offline-badge {
        margin-left: 6px;
    }
    
    .verified-badge {
        width: 16px;
        height: 16px;
    }
    
    .online-badge, .offline-badge {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 576px) {
    .profile-banner {
        min-height: 200px;
    }
    
    .profile-photo {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .profile-username {
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .profile-stats {
        gap: 1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-title {
        font-size: 0.9rem;
    }
    
    .content-price {
        font-size: 0.9rem;
    }
    
    .content-likes {
        font-size: 0.8rem;
    }
    
    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .subscribe-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .card-features li {
        font-size: 0.85rem;
    }
    
    .modal-header {
        padding: 0.8rem 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .form-control {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }
    
    .btn-primary, 
    .btn-outline-primary {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Ajustes para indicadores em tela pequena */
    .profile-username {
        font-size: 0.9rem;
    }
    
    .verified-badge {
        width: 14px;
        height: 14px;
    }
    
    .verified-badge svg {
        width: 10px;
        height: 10px;
    }
    
    .online-badge, .offline-badge {
        width: 7px;
        height: 7px;
    }
}

/* Fixed modal for mobile */
@media (max-width: 480px) {
    .modal.show {
        align-items: flex-end;
    }
    
    .modal-dialog {
        width: 100%;
        margin: 0;
    }
    
    .modal-content {
        border-radius: 15px 15px 0 0;
        max-height: 90vh;
        overflow-y: auto;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    display: none;
}

.modal.show {
    display: block;
}

/* Animação de pulse para elementos com essa classe */
.pulse-animation {
    animation: pulse 2s infinite;
}

/* Estilos para o modal exclusivo */
.exclusive-preview {
    text-align: center;
    padding: 20px;
}

.creator-preview {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #FF3333;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.5);
}

.creator-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exclusive-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #FF3333;
    color: white;
    border-radius: 50%;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.exclusive-title {
    font-weight: bold;
    margin-top: 15px;
}

.exclusive-message {
    font-size: 1.1rem;
    color: #ccc;
    margin: 10px 0 20px;
}

.enter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 30px;
    font-weight: bold;
    border-radius: 30px;
    background: linear-gradient(to right, #FF3333, #FF6666);
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.enter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.3);
}

/* Correções para modal */
body.modal-open {
    overflow: hidden;
    padding-right: 15px; /* Evita saltos no layout ao abrir/fechar modal */
}

.modal {
    z-index: 1050;
    display: none;
}

.modal-backdrop {
    z-index: 1040;
    background-color: rgba(0, 0, 0, 0.8);
}

/* Garantir que modal de vídeo fique acima dos outros */
#videoModal {
    z-index: 1060;
}

/* Garantir que botões de fechar funcionem */
.modal .close, 
.modal .modal-close,
[data-dismiss="modal"] {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.modal .close:hover, 
.modal .modal-close:hover,
[data-dismiss="modal"]:hover {
    opacity: 1;
}

/* Evitar clique em elementos sobrepostos */
.modal.show * {
    pointer-events: auto;
}

/* Corrigir backdrop que fica preso */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1040;
    transition: opacity 0.15s linear;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.8;
}

/* Corrigir z-index para evitar conflitos */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: 0;
    z-index: 1050;
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Garantir maior z-index para modal de vídeo */
#videoModal {
    z-index: 1060;
}

/* Garantir que modais de login tenham z-index ainda maior */
#loginModal {
    z-index: 1070;
}

/* Corrigir exibição de modal */
.modal.show {
    display: block;
}

/* Prevenir scrollbar jumps quando modal é aberto */
body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0);
}

/* Melhorar animação de entrada de modal */
.modal-dialog {
    transform: translateY(-50px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

/* Melhorar a aparência e resposta do botão de fechar */
.modal .close, 
.modal .modal-close,
[data-dismiss="modal"] {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    outline: none !important;
    box-shadow: none !important;
}

.modal .close:hover, 
.modal .modal-close:hover,
[data-dismiss="modal"]:hover {
    opacity: 1;
}

/* Transição suave para overlay de vídeo */
.teaser-overlay {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.teaser-overlay:hover {
    opacity: 1;
}

/* Evitar clique em elementos sobrepostos quando modal está aberto */
.modal.show * {
    pointer-events: auto;
}

/* Corrigir bug de background do corpo borrando quando modal é fechado */
body:not(.modal-open) {
    filter: none !important;
    backdrop-filter: none !important;
}

/* Evitar que conteúdo do modal fique visível durante transições */
.modal:not(.show) .modal-content {
    visibility: hidden;
}

/* Melhorar transição ao abrir e fechar modais */
.modal {
    transition: opacity 0.15s linear;
    opacity: 0;
}

.modal.show {
    opacity: 1;
}

/* Evitar que modal perca foco quando backdrop for clicado */
.modal-backdrop {
    pointer-events: all;
}

/* Garantir que fechar modal funcione em modo mobile */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem auto;
        max-width: calc(100% - 1rem);
    }
    
    .modal .close, 
    .modal .modal-close {
        padding: 1rem;
        margin: -1rem -1rem -1rem auto;
    }
}

/* Corrigir posicionamento bottom sheet em mobile */
@media (max-width: 480px) {
    .modal.show .modal-dialog {
        margin-bottom: 0;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(0);
    }
    
    .modal-content {
        border-radius: 1rem 1rem 0 0;
    }
}

/* Garantir que backdrop não seja clicável quando houver múltiplos modais */
body.multiple-modals .modal-backdrop:not(:last-child) {
    pointer-events: none;
}

/* Melhorar aparência do loading no modal de vídeo */
#videoLoading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

#videoLoading:after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--hot-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Correção CSS Simples para Modais
 * Adicione este código ao final do seu arquivo CSS
 */

/* Reset para garantir funcionamento correto dos modais */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.show {
    display: block;
}

/* Garantir que o modal de vídeo tenha z-index maior */
#videoModal {
    z-index: 1060;
}

/* Garantir que o overlay funcione */
.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
    max-width: 500px;
    margin: 1.75rem auto;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: var(--darker-bg, #0A0A0A);
    border-radius: 0.3rem;
    outline: 0;
}

.modal-open {
    overflow: hidden;
}

/* Melhorar a aparência do botão de fechar */
.modal .close,
.modal-close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 0 #000;
    opacity: 0.5;
    background: transparent;
    border: 0;
    padding: 1rem;
    cursor: pointer;
}

.modal .close:hover,
.modal-close:hover {
    opacity: 1;
}

/* Evitar que botões fiquem bloqueados */
.modal button {
    pointer-events: auto !important;
}

/* Botão de emergência (aparece em caso de erro) */
.modal-reset-button {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 9999;
    background-color: #FF3333;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    display: none;
    font-weight: bold;
}

.modal-reset-button.visible {
    display: block;
}

/* Melhoria para mobile */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
}