/* Profile */
.profile-container {
    background: var(--surface-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

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

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

.profile-stats-bar {
    display: flex;
    gap: 5px;
    padding-bottom: 25px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.stat-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

.stat-item span {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.live-badge {
    position: relative;
    width: 64px;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: red;
    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(--surface-secondary);
    z-index: 2;
}

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

.online-status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 2px solid var(--surface-secondary);
    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-main);
}

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

.profile-bio {
    color: var(--text-main);
    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(--surface-tertiary);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

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

.tab.active {
    background: var(--surface-primary);
    color: var(--text-accent);
    font-weight: bold;
}

/* Posts */
.post-card {
    background: var(--surface-secondary);
    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(--surface-modal);
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-heavy);
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    color: var(--text-main);
    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;
}

/* Feedback Marquee */
.feedback-section {
    margin: 30px 0;
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.marquee-content {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollMarquee 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.feedback-card {
    background: var(--surface-secondary);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 280px;
    flex-shrink: 0;
    box-shadow: var(--shadow-soft);
}

.feedback-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.feedback-info {
    flex: 1;
}

.stars {
    color: #fbbf24;
    font-size: 14px;
    margin-bottom: 2px;
}

.feedback-text {
    font-size: 12px;
    color: var(--text-main);
    line-height: 1.3;
    margin: 0;
}

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

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

.gallery-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gallery-img.blur-effect {
    filter: blur(4px);
    transform: scale(1.05);
    opacity: 0.8;
}

.gallery-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    color: white;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}