/* ============================================
   T-FEED V2: ULTRA PREMIUM NEON (IMAGE ACCURACY)
   ============================================ */

:root {
    --tf-bg: #000000;
    --tf-card-bg: #0a0a0a;
    --tf-accent: #00f2ff;
    --tf-accent-glow: rgba(0, 242, 255, 0.4);
    --tf-text: #ffffff;
    --tf-text-muted: #8e8e8e;
    --tf-border: rgba(255, 255, 255, 0.08);
    --tf-glass: rgba(255, 255, 255, 0.03);
    --tf-cyan: #00f2ff;
}

#tfeed-v2-container {
    background: var(--tf-bg);
    color: var(--tf-text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    padding-bottom: 75px;
}

/* SKELETON LOADING */
.tf-v2-skeleton {
    background: linear-gradient(90deg, #121212 25%, #1a1a1a 50%, #121212 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-circle { border-radius: 50%; }
.skeleton-title { height: 16px; width: 60%; margin: 10px 0; }
.skeleton-media { aspect-ratio: 4/5; border-radius: 20px; width: 100%; }

/* Header V2 - Exact Image Match */
.tf-v2-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    height: 70px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.tf-v2-logo-container {
    text-align: center;
}

.logo-tfit-v2 {
    font-size: 24px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 2px;
}

.logo-tfit-v2 .blue {
    color: var(--tf-accent);
    text-shadow: 0 0 10px var(--tf-accent-glow);
}

.logo-social-v2 {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--tf-text-muted);
    text-transform: uppercase;
    display: block;
    margin-top: -5px;
}

/* Stories Bar */
.tf-v2-section-title {
    padding: 15px 20px 5px;
    font-size: 16px;
    font-weight: 800;
}

.tf-v2-stories-bar {
    display: flex;
    gap: 15px;
    padding: 10px 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tf-v2-stories-bar::-webkit-scrollbar {
    display: none;
}

.tf-v2-story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: 78px;
}

.tf-v2-story-ring {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    padding: 3px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.tf-v2-story-ring.has-stories {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
}

.tf-v2-story-plus-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #008dd2; /* Cor mais sólida e contrastante */
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    border: 3px solid #000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
    line-height: 1;
}

.tf-v2-story-ring.watched {
    background: #333 !important;
}

.tf-v2-story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #000;
    object-fit: cover;
}

.tf-v2-story-name {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

/* Posts - Exact Image Match */
.tf-v2-post {
    margin-bottom: 25px;
    border-top: 1px solid var(--tf-border);
    background: var(--tf-bg);
}

.tf-v2-post-header {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tf-v2-post-user {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.tf-v2-post-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--tf-accent);
    object-fit: cover;
}

.tf-v2-post-username {
    font-weight: 700;
    font-size: 14px;
}

.tf-v2-verified-badge {
    color: var(--tf-accent);
    font-size: 14px;
    margin-left: 5px;
    text-shadow: 0 0 5px var(--tf-accent-glow);
}

.tf-v2-post-media-container {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #000;
    border-radius: 20px;
    margin: 0 15px;
    width: calc(100% - 30px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tf-v2-post-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tf-v2-post-actions {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
}

.tf-v2-actions-left {
    display: flex;
    gap: 18px;
}

.tf-v2-action-icon {
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
}

.tf-v2-action-icon:active {
    transform: scale(1.2);
}

.tf-v2-action-icon.bi-heart-fill {
    color: #fe2c55;
    text-shadow: 0 0 10px rgba(254, 44, 85, 0.4);
}

.tf-v2-likes-count {
    padding: 0 20px;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    margin-bottom: 6px;
    display: block;
}

.tf-v2-likes-count i {
    color: #eab308;
    margin-right: 5px;
}

.tf-v2-post-caption {
    padding: 5px 20px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 5px;
}

.tf-v2-post-caption strong {
    cursor: pointer;
}

.tf-v2-post-time {
    color: var(--tf-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 20px 15px;
}

.btn-outline-cyan {
    background: transparent;
    border: 1px solid var(--tf-cyan);
    color: var(--tf-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.1);
}

.tf-v2-tpoints-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #ffcc00, #ff9900);
    color: #000;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 12px;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.3);
    cursor: pointer;
    transition: 0.2s;
}

.tf-v2-tpoints-badge:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Profile V2 - Image Parity */
.tf-v2-profile-wrap {
    padding: 0;
}

.tf-v2-profile-header-full {
    background: linear-gradient(to bottom, #111, #000);
    padding: 20px 0;
    position: relative;
    border-bottom: 2px solid var(--tf-border);
}

.tf-v2-profile-info-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tf-v2-profile-pic-large {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(45deg, #00f2ff, #bc1888);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
    margin-bottom: 15px;
}

.tf-v2-profile-pic-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #000;
    object-fit: cover;
}

.tf-v2-profile-name {
    font-size: 24px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tf-v2-profile-username {
    color: var(--tf-text-muted);
    font-size: 14px;
    margin-bottom: 15px;
}

.tf-v2-profile-stats-grid {
    display: flex;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    margin: 15px;
    border-radius: 20px;
    justify-content: space-around;
    border: 1px solid var(--tf-border);
}

.tf-v2-stat-row {
    text-align: center;
}

.tf-v2-stat-row b {
    font-size: 20px;
    font-weight: 900;
    display: block;
}

.tf-v2-stat-row span {
    font-size: 12px;
    color: var(--tf-text-muted);
}

.tf-v2-profile-actions {
    display: flex;
    padding: 0 15px;
    gap: 15px;
    margin-bottom: 25px;
}

.tf-v2-btn-primary {
    flex: 1;
    background: linear-gradient(90deg, #008dd2, #00f2ff);
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 30px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.3);
    cursor: pointer;
}

.tf-v2-btn-secondary {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid var(--tf-border);
    color: #fff;
    padding: 12px;
    border-radius: 30px;
    font-weight: 700;
}

.tf-v2-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.tf-v2-grid-item {
    aspect-ratio: 1/1;
    background: #1a1a1a;
    overflow: hidden;
}

.tf-v2-grid-item img,
.tf-v2-grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nav Bar Fixed Bottom */
.tf-v2-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 85px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(25px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--tf-border);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 2000;
}

.tf-v2-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--tf-text-muted);
    gap: 4px;
    cursor: pointer;
    flex: 1;
    padding: 10px 0;
}

.tf-v2-nav-btn i {
    font-size: 22px;
    /* Reduzido de inline 36px/CSS 24px */
}

.tf-v2-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

.tf-v2-nav-btn.active {
    color: var(--tf-accent);
    text-shadow: 0 0 10px var(--tf-accent-glow);
}

/* Especial para o botão de Adicionar */
.tf-v2-nav-btn:nth-child(3) i {
    font-size: 26px;
    color: var(--tf-accent);
}

/* Header Action Buttons */
.tf-v2-icon-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.2s;
}

.tf-v2-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

.liked {
    animation: heartPop 0.3s ease-out;
}

/* Fullscreen Story Viewer */
.tf-v2-story-viewer {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.tf-v2-story-progress-bar {
    display: flex;
    gap: 4px;
    padding: 10px;
}

.tf-v2-story-progress-seg {
    height: 2px;
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.tf-v2-story-progress-fill {
    height: 100%;
    background: #fff;
    width: 0%;
}

.tf-v2-story-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 15px;
}

.tf-v2-story-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tf-v2-story-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Profile Section */
.tf-v2-profile-wrap {
    padding: 15px;
}

.tf-v2-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.tf-v2-grid-item {
    aspect-ratio: 1/1;
    background: #1a1a1a;
    overflow: hidden;
}

.tf-v2-grid-item img,
.tf-v2-grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes likeEffect {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* Skeleton Loading Support */
.tf-v2-skeleton {
    background: linear-gradient(90deg, #121212 25%, #1a1a1a 50%, #121212 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Hide standard T-FIT bottom nav when T-Feed is active */
body:has(#tfeed-v2-wrapper) .bottom-nav,
body:has(#tfeed-v2-wrapper) .tf-bottom-nav {
    display: none !important;
}

/* Direct / Chat Styles - Instagram Premium Neon */
.tf-v2-chat-container {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tf-v2-chat-header {
    height: 70px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--tf-border);
    z-index: 10;
}

.tf-v2-chat-back {
    font-size: 24px;
    padding: 8px;
    cursor: pointer;
    color: var(--tf-cyan);
}

.tf-v2-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--tf-border);
    object-fit: cover;
}

.tf-v2-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: radial-gradient(circle at top, #0a0a0a 0%, #000 100%);
}

.tf-v2-chat-messages::-webkit-scrollbar {
    width: 4px;
}

.tf-v2-chat-messages::-webkit-scrollbar-thumb {
    background: var(--tf-border);
    border-radius: 10px;
}

/* Message Bubbles - Exact IG Style */
.msg-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 78%;
}

.msg-wrapper.sent { align-self: flex-end; }
.msg-wrapper.received { align-self: flex-start; }

.tf-v2-message {
    padding: 12px 16px;
    border-radius: 22px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    word-break: break-word;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.tf-v2-message.sent {
    background: linear-gradient(135deg, #008dd2 0%, #00f2ff 100%);
    color: #000;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.tf-v2-message.received {
    background: #1a1a1a;
    color: #fff;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--tf-border);
}

/* Media Content in Chat */
.msg-media-container {
    width: 240px;
    border-radius: 18px;
    overflow: hidden;
    background: #111;
    border: 1px solid var(--tf-border);
}

.msg-media-container img, .msg-media-container video {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 320px;
}

/* Audio Player Bubble */
.audio-msg {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.audio-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.audio-progress {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    position: relative;
}

.audio-progress-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: var(--tf-cyan);
    border-radius: 2px;
    width: 0%;
}

/* Chat Input Area - Precise IG Match */
.tf-v2-chat-input-area {
    background: #000;
    padding: 10px 15px 35px; /* Bottom padding for safe area */
    border-top: 1px solid var(--tf-border);
}

.tf-v2-input-main-wrap {
    background: #1a1a1a;
    border-radius: 28px;
    display: flex;
    align-items: center;
    padding: 5px 8px;
    border: 1px solid var(--tf-border);
    gap: 8px;
}

.tf-v2-input-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.tf-v2-input-btn:active { transform: scale(0.9); }
.tf-v2-input-btn.active { color: #fe2c55; }

.tf-v2-chat-input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 15px;
    padding: 10px 5px;
    outline: none;
    max-height: 120px;
    overflow-y: auto;
}

.tf-v2-send-btn {
    color: var(--tf-cyan);
    font-weight: 800;
    font-size: 14px;
    padding: 0 12px;
    cursor: pointer;
    display: none; /* Only show when text exists */
}

/* Conversation List / Inbox */
.tf-v2-inbox {
    animation: fadeIn 0.3s ease;
}

.tf-v2-conv-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    cursor: pointer;
    transition: 0.2s;
}

.tf-v2-conv-item:active { background: rgba(255,255,255,0.05); }

.tf-v2-avatar-wrap {
    position: relative;
    width: 60px;
    height: 60px;
}

.tf-v2-conv-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--tf-border);
}

.tf-v2-online-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: #22c55e;
    border-radius: 50%;
    border: 3px solid #000;
}

.tf-v2-conv-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.tf-v2-conv-name {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    margin-bottom: 2px;
}

.tf-v2-conv-meta {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 13px;
    color: var(--tf-text-muted);
}

.tf-v2-last-msg {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.tf-v2-unread-tag {
    width: 10px;
    height: 10px;
    background: var(--tf-cyan);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--tf-accent-glow);
}

.tf-v2-direct-title {
    padding: 20px;
    font-size: 22px;
    font-weight: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* T-Store & Checkout Styles */
.tf-v2-store-wrapper {
    background: #050505;
    margin: -15px;
    padding: 20px;
    min-height: 500px;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.tf-v2-store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid var(--tf-border);
}

.tf-v2-store-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 20px;
    color: var(--tf-accent);
}

.tf-v2-store-balance {
    text-align: right;
}

.tf-v2-store-balance small {
    display: block;
    font-size: 9px;
    font-weight: 800;
    color: var(--tf-text-muted);
    letter-spacing: 1px;
}

.balance-amount {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
}

.tf-v2-store-section {
    margin-bottom: 30px;
}

.section-tag {
    font-size: 9px;
    font-weight: 900;
    color: var(--tf-accent);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.section-title {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 15px;
}

/* Points Card */
.tf-v2-points-card {
    background: var(--tf-card-bg);
    border: 1px solid var(--tf-border);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
}

.slider-container {
    padding: 20px 0;
}

#points-slider {
    width: 100%;
    height: 6px;
    background: #222;
    border-radius: 10px;
    outline: none;
    accent-color: var(--tf-accent);
}

.purchase-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 20px 0;
}

.info-block {
    display: flex;
    flex-direction: column;
}

.value-main {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
}

.value-sub {
    font-size: 10px;
    color: var(--tf-text-muted);
    font-weight: 700;
}

.info-divider {
    color: var(--tf-accent);
    font-size: 24px;
    opacity: 0.5;
}

.tf-v2-store-main-btn {
    width: 100%;
    background: var(--tf-accent);
    color: #000;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0, 242, 255, 0.3);
    cursor: pointer;
    transition: 0.3s;
}

.tf-v2-store-main-btn:active {
    transform: scale(0.98);
}

.rate-hint {
    font-size: 10px;
    color: var(--tf-text-muted);
    margin-top: 15px;
}

/* Store Items */
.tf-v2-store-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--tf-border);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.premium-item {
    border: 1px solid rgba(0, 242, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.05) 0%, transparent 100%);
}

.item-preview {
    display: flex;
    justify-content: center;
    padding: 10px;
}

.verified-hex {
    font-size: 50px;
    color: var(--tf-accent);
    filter: drop-shadow(0 0 15px var(--tf-accent-glow));
}

.item-info {
    flex: 1;
}

.item-info h5 {
    font-weight: 900;
    font-size: 18px;
    margin-bottom: 5px;
    color: #fff;
}

.item-info p {
    font-size: 13px;
    color: var(--tf-text-muted);
    margin-bottom: 12px;
}

.item-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.item-benefits span {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 600;
    color: #fff;
}

.item-purchase-options {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.buy-option-tp {
    flex: 1;
    background: #111;
    border: 1px solid var(--tf-accent);
    color: var(--tf-accent);
    padding: 12px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.buy-option-cash {
    flex: 1;
    background: #fff;
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
}

.or-divider {
    font-size: 10px;
    font-weight: 900;
    color: var(--tf-text-muted);
}

/* Checkout Container */
.tf-v2-checkout-container {
    padding: 10px 0;
}

.checkout-header {
    text-align: center;
    margin-bottom: 25px;
}

.payment-methods-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #111;
    border: 1px solid var(--tf-border);
    border-radius: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.payment-option:hover {
    background: #1a1a1a;
    border-color: var(--tf-accent);
}

.option-icon {
    width: 48px;
    height: 48px;
    background: #000 !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-text {
    flex: 1;
}

.option-text h5 {
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 2px;
    color: #fff;
}

.option-text p {
    font-size: 11px;
    color: var(--tf-text-muted);
}

.option-arrow {
    color: var(--tf-text-muted);
    font-size: 18px;
}

.manual-pix-collapsible {
    margin-top: 10px;
}

.btn-manual-pix {
    width: 100%;
    background: none;
    border: none;
    color: var(--tf-text-muted);
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
    padding: 10px;
}

.hidden {
    display: none;
}

/* REELS EXPLORER GRID - INSTAGRAM ELITE STYLE */
.tf-v2-reels-explorer-header {
    padding: 20px 20px 10px;
    background: #000;
}

.tf-v2-reels-explorer-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--tf-cyan);
    text-shadow: 0 0 10px var(--tf-accent-glow);
    margin: 0;
}

.tf-v2-reels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: #000;
    padding-bottom: 100px;
}

.tf-v2-reels-grid-item {
    position: relative;
    aspect-ratio: 9 / 16;
    background: #111;
    overflow: hidden;
    cursor: pointer;
}

.tf-v2-reels-grid-item:active {
    transform: scale(0.98);
}

.tf-v2-reels-grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tf-v2-reels-grid-stats {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.tf-v2-reels-grid-stats i {
    font-size: 14px;
    color: var(--tf-cyan);
}

/* FIX: Direct Conversations Missing CSS */
.tf-v2-direct-title { padding: 15px 20px; font-size: 18px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--tf-border); }
.tf-v2-conv-list { padding: 10px 0; }
.tf-v2-conv-item { display: flex; align-items: center; padding: 10px 20px; gap: 15px; cursor: pointer; transition: background 0.2s; }
.tf-v2-conv-item:hover { background: rgba(255, 255, 255, 0.05); }
.tf-v2-conv-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.tf-v2-conv-info { flex: 1; display: flex; flex-direction: column; font-family: 'Inter', sans-serif; }
.tf-v2-conv-name { font-size: 15px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 5px; margin-bottom: 2px; }
.tf-v2-conv-last { font-size: 13px; color: #8e8e8e; }
.tf-v2-direct-container { display: flex; flex-direction: column; min-height: 80vh; animation: fadeIn 0.3s ease; }
.tf-v2-message.sent { background: linear-gradient(to right, #3797f0, #008dd2, #00f2ff) !important; color: white !important; border-bottom-right-radius: 4px !important; }
.tf-v2-message.received { background: #262626 !important; color: white !important; border-bottom-left-radius: 4px !important; border: none !important; }
.tf-v2-chat-input-area { background: #000 !important; border-top: 1px solid #262626 !important; padding: 10px 15px 35px !important; }
.tf-v2-input-main-wrap { border: 1.5px solid #363636 !important; border-radius: 28px !important; padding: 2px 12px !important; display: flex; align-items: center; }

.tf-v2-input-camera { background: #3797f0; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 5px; color: white; }
.tf-v2-input-send-btn { color: #3797f0 !important; font-weight: 800 !important; font-size: 15px !important; background: none; border: none; cursor: pointer; padding: 0 10px; }

/* ============================================ */
/* PREMIUM DIRECT MESSAGING (INSTAGRAM STYLE)    */
/* ============================================ */

.tf-v2-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scroll-behavior: smooth;
}

/* --- Message Bubbles --- */
.msg-wrapper {
    max-width: 75%;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 8px;
    animation: tfMessageIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.msg-wrapper.sent { align-self: flex-end; }
.msg-wrapper.received { align-self: flex-start; }

.tf-v2-message {
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tf-v2-message.sent {
    background: linear-gradient(135deg, #3797f0 0%, #308ce7 100%);
    color: #fff;
    border-radius: 22px 22px 4px 22px;
}

.tf-v2-message.received {
    background: #262626;
    color: #efefef;
    border-radius: 22px 22px 22px 4px;
}

/* --- Reactions --- */
.msg-reactions {
    position: absolute;
    bottom: -10px;
    display: flex;
    gap: 2px;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 2px 4px;
    border-radius: 12px;
    font-size: 11px;
    z-index: 5;
}
.sent .msg-reactions { right: 8px; }
.received .msg-reactions { left: 8px; }

/* --- Replied Msg Preview --- */
.reply-preview {
    background: rgba(255,255,255,0.05);
    border-left: 3px solid #3797f0;
    padding: 4px 8px;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: 11px;
    color: #888;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Media Previews --- */
.tf-v2-chat-media {
    width: 100%;
    max-width: 240px;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a1a;
    margin-bottom: 4px;
}
.tf-v2-chat-media img, .tf-v2-chat-media video {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Typing Indicator --- */
.typing-indicator {
    padding: 8px 16px;
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}
.typing-dots { display: flex; gap: 3px; }
.typing-dots div { width: 4px; height: 4px; background: #888; border-radius: 50%; animation: tfTyping 1.4s infinite; }
.typing-dots div:nth-child(2) { animation-delay: 0.2s; }
.typing-dots div:nth-child(3) { animation-delay: 0.4s; }

@keyframes tfTyping { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }

/* --- Call Screen --- */
.tf-v2-call-screen {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #fff;
}

.call-avatar-wrap { position: relative; margin-bottom: 30px; }
.call-avatar { width: 140px; height: 140px; border-radius: 50%; border: 4px solid #3797f0; object-fit: cover; }
.call-pulse { position: absolute; inset: -10px; border: 2px solid #3797f0; border-radius: 50%; animation: tfCallPulse 2s infinite; opacity: 0; }

@keyframes tfCallPulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.5); opacity: 0; } }

.call-actions { display: flex; gap: 40px; margin-top: 50px; }
.call-btn { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; border: none; cursor: pointer; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.call-btn:hover { transform: scale(1.1); }
.call-btn.accept { background: #10b981; color: #fff; }
.call-btn.reject { background: #ef4444; color: #fff; }
.call-btn.hangup { background: #ef4444; color: #fff; width: 64px; height: 64px; }

.video-call-wrap { width: 100%; height: 100%; position: relative; background: #000; }
#remote-video { width: 100%; height: 100%; object-fit: cover; }
#local-video { position: absolute; top: 30px; right: 20px; width: 110px; height: 160px; background: #222; border-radius: 12px; object-fit: cover; border: 1px solid rgba(255,255,255,0.3); z-index: 10; }

.badge-boost {
    background: linear-gradient(135deg, #b000ff 0%, #00f2ff 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
    margin-left: 5px;
}

/* ============================================
   PREMIUM CHAT ROOM V16 - NOVOS COMPONENTES
   ============================================ */

.tf-v2-chat-room {
    display: flex; flex-direction: column; height: 100vh;
    background: #000; overflow: hidden;
}

.tf-v2-chat-header {
    position: sticky; top: 0; z-index: 100;
    padding: 10px 16px;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tf-v2-chat-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--tf-accent);
}

.tf-v2-chat-messages {
    flex: 1; overflow-y: auto; padding: 16px 12px;
    display: flex; flex-direction: column; gap: 4px;
}

/* Input Area */
.tf-v2-chat-input-area {
    padding: 10px 12px 20px;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.tf-v2-input-main-wrap {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px; padding: 8px 12px;
}

.tf-v2-input-camera {
    color: rgba(255,255,255,0.6); font-size: 20px;
    display: flex; align-items: center; flex-shrink: 0;
}
.tf-v2-input-camera:hover { color: var(--tf-accent); }

.tf-v2-chat-input {
    flex: 1; background: none; border: none; outline: none;
    color: #fff; font-size: 15px;
}
.tf-v2-chat-input::placeholder { color: rgba(255,255,255,0.3); }

.tf-v2-input-utils {
    display: flex; gap: 12px; align-items: center;
    color: rgba(255,255,255,0.6);
}
.tf-v2-input-utils i:hover { color: var(--tf-accent); }

.tf-v2-input-send-btn {
    background: var(--tf-accent); color: #000;
    border: none; border-radius: 20px;
    padding: 5px 14px; font-weight: 700; font-size: 13px;
    cursor: pointer; white-space: nowrap;
    transition: transform 0.15s, opacity 0.15s;
}
.tf-v2-input-send-btn:hover { transform: scale(1.05); }
.tf-v2-input-send-btn.hidden { display: none !important; }

/* Typing Indicator */
.typing-indicator {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; font-size: 12px;
    color: rgba(255,255,255,0.4);
}
.typing-dots { display: flex; gap: 3px; align-items: center; }
.typing-dots > div {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.4);
    animation: typingBounce 1.2s infinite;
}
.typing-dots > div:nth-child(2) { animation-delay: 0.2s; }
.typing-dots > div:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

/* Reply Preview */
.reply-preview {
    font-size: 11px; background: rgba(55,151,240,0.12);
    border-left: 2px solid #3797f0;
    border-radius: 6px 6px 0 0;
    padding: 4px 8px; margin-bottom: 2px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
}

/* Message Wrappers */
.msg-wrapper {
    display: flex; flex-direction: column; max-width: 75%;
    animation: msgFadeIn 0.2s ease;
}
.msg-wrapper.sent  { align-self: flex-end; align-items: flex-end; }
.msg-wrapper.received { align-self: flex-start; align-items: flex-start; }
@keyframes msgFadeIn { from { opacity:0; transform: translateY(6px); } to { opacity:1; transform: none; } }

/* Message Reactions */
.msg-reactions {
    display: flex; gap: 4px; flex-wrap: wrap;
    margin-top: 3px; padding: 0 4px;
}
.msg-reactions span {
    background: rgba(255,255,255,0.1);
    border-radius: 20px; padding: 2px 6px;
    font-size: 13px; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.08);
}
.msg-reactions span:hover { background: rgba(255,255,255,0.2); }

/* Chat Media */
.tf-v2-chat-media { margin-bottom: 4px; border-radius: 12px; overflow: hidden; max-width: 240px; }
.tf-v2-chat-media img, .tf-v2-chat-media video { width: 100%; border-radius: 12px; display: block; }

/* REELS PLAYER - IMMERSIVE VERTICAL PLAYER */
.tf-v2-reels-player-container {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 155px);
    background: #000;
    z-index: 1500;
}

.tf-v2-reels-vertical-scroll {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.tf-v2-reels-vertical-scroll::-webkit-scrollbar {
    display: none;
}

.tf-v2-reel-item {
    height: 100%;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    background: #000;
}

.tf-v2-reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tf-v2-reels-back-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.tf-v2-reel-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 70px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    pointer-events: none;
}
.tf-v2-reel-info * { pointer-events: auto; }

.tf-v2-reel-actions {
    position: absolute;
    bottom: 30px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.tf-v2-reel-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 11px;
}

.tf-v2-reel-action i {
    font-size: 28px;
    cursor: pointer;
}

