/* Profile */
.profile-container {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.banner-wrapper {
    position: relative;
    height: 180px;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-stats-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 15px;
    background: var(--bg-overlay);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
    color: var(--text-on-overlay);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
}

.live-badge {
    position: relative;
    width: 64px;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red-500);
    color: white;
    font-size: 10px;
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid white;
    z-index: 4;
    animation: pulseLive 1.5s infinite;
}

.profile-image-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    z-index: 10;
}

.profile-image-pulse {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff0000, #b1310a);
    animation: pulseBorderAvatar 2s infinite;
    z-index: 1;
}

.profile-image-container {
    position: relative;
    width: 100px;
    height: 100px;

    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-card);
    z-index: 2;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 2px solid var(--bg-card);
    border-radius: 50%;
    z-index: 3;
}

@keyframes pulseBorderAvatar {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.profile-info {
    padding: 20px 16px 15px;
}

.profile-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-handle {
    margin-top: -3px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.profile-bio {
    color: var(--text-primary);
    line-height: 1.4;
}

.profile-bio strong {
    display: block;
    margin-top: 8px;
}

.verify-icon {
    width: 18px;
    color: #fd7350;
}

@keyframes pulseLive {
    0% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }

    70% {
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 0 0 8px rgba(255, 0, 0, 0);
    }

    100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* Tabs */
.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--tab-bg);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}





.tab {
    padding: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-secondary);
}

.tab.active {
    background: var(--tab-active-bg);
    color: var(--orange-600);
    font-weight: bold;
}

/* Posts */
.post-card {
    background: var(--bg-card);
    margin-bottom: 20px;
}

.post-video-container {
    position: relative;
    aspect-ratio: 9/16;
}

.post-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Popup */
.popup-compra {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--bg-popup);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    z-index: 1000;
    animation: popupLoop 30s infinite;
}

@keyframes popupLoop {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    5%,
    15% {
        opacity: 1;
        transform: translateY(0);
    }

    16% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 0;
    }
}

/* Gallery */
.gallery-section {
    margin: 20px 0;
}

.gallery-item {
    position: relative;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
}

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

.gallery-img {
    width: 100%;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
}