/**
 * Dashboard Styles - Simple Mobile-First Design
 */

/* Dashboard Layout */
.dashboard-container {
    min-height: 100vh;
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2A2D3A;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: none;
}

.user-info h1 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.user-info .subtitle {
    font-size: 12px;
    color: #9699A3;
    margin: 2px 0 0;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.header-btn {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.notif-btn {
    background: transparent;
    color: #fff;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.notif-btn {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #EF4444;
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.home-icon-btn {
    background: #9D4EDD;
    color: #fff;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.settings-btn {
    background: transparent;
    color: #fff;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Settings Dropdown */
.settings-dropdown {
    position: relative;
}

.settings-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #14151a;
    border: 1px solid #3A3D4A;
    border-radius: 10px;
    min-width: 170px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 100;
    overflow: hidden;
}

.settings-menu.show {
    display: block;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    text-decoration: none;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Refer & Earn - Special highlight */
.refer-item {
    color: #9D4EDD;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.15), rgba(123, 44, 191, 0.1));
}

.refer-item:hover {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.25), rgba(123, 44, 191, 0.2));
}

.refer-item svg {
    fill: #9D4EDD;
}

.signout-item {
    color: #FCA5A5;
}

.signout-item svg {
    fill: #FCA5A5;
}

.signout-btn {
    background: #3A2D3A;
    color: #FCA5A5;
}

/* Earnings Split Layout - Option C */
.earnings-split {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

/* Left: Wallet Main Card */
.wallet-main-card {
    flex: 1.4;
    background: #14151a;
    border: 1px solid #9D4EDD;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 150px;
    position: relative;
    overflow: hidden;
}

.wallet-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.wallet-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
}

.wallet-amount {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.withdraw-btn {
    background: #9D4EDD;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* Right: Stacked Stats (40%) */
.earnings-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-card {
    background: #14151a;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #3A3D4A;
    flex: 1;
}

.stat-icon {
    font-size: 20px;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 11px;
    color: #9699A3;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
}

#totalEarns {
    color: #4ADE80;
}

#totalWithdrawal {
    color: #F87171;
}

#walletBalance {
    color: #fff;
}

/* Mobile: Keep horizontal split-screen side-by-side layout */
@media (max-width: 480px) {
    .earnings-split {
        display: flex;
        flex-direction: row;
        gap: 8px;
    }

    .wallet-main-card {
        padding: 12px 10px;
        min-height: 120px;
        border-radius: 12px;
    }

    .wallet-icon {
        font-size: 20px;
        margin-bottom: 2px;
    }

    .wallet-label {
        font-size: 10px;
        margin-bottom: 2px;
    }

    .wallet-amount {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .withdraw-btn {
        padding: 8px 12px;
        font-size: 11px;
        border-radius: 6px;
    }

    .earnings-stack {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .stat-card {
        padding: 8px 10px;
        gap: 6px;
        border-radius: 10px;
    }

    .stat-icon {
        font-size: 16px;
    }

    .stat-label {
        font-size: 9px;
    }

    .stat-value {
        font-size: 13px;
    }
}

/* Content Stats */
.content-stats {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}

.content-count {
    font-size: 24px;
    font-weight: 700;
    color: #9D4EDD;
}

.content-label {
    font-size: 14px;
    color: #9699A3;
}

/* Content Grid - Vertical List */
.content-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Video Card - Horizontal Rectangle */
.video-card {
    background: #14151a;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    cursor: pointer;
}

.video-card:active {
    background: #2F3142;
}

/* Frozen Card - Not Clickable */
.video-card.frozen-card {
    opacity: 0.6;
    cursor: not-allowed;
}

.video-card.frozen-card:active {
    background: #14151a;
}

/* Thumbnail */
.thumbnail-container {
    width: 120px;
    height: 68px;
    flex-shrink: 0;
    position: relative;
    background: #000;
}

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

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1A1B26;
}

.thumbnail-placeholder svg {
    width: 32px;
    height: 32px;
    fill: #4a4a5a;
}

.status-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
}

.status-badge.live {
    background: rgba(0, 0, 0, 0.8);
    color: #9D4EDD;
}

.status-badge.frozen {
    background: #DC2626;
    color: white;
}

.photo-count-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.photo-count-badge svg {
    width: 11px;
    height: 11px;
    stroke: #9D4EDD;
    stroke-width: 2.5px;
}

/* Video Info */
.video-info {
    padding: 10px 12px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    font-size: 12px;
    color: #9699A3;
    margin: 0;
}

.frozen-text {
    color: #EF4444;
}

/* Video Actions */
.video-actions {
    display: flex;
    align-items: center;
    padding-right: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #9699A3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:active {
    background: rgba(157, 78, 221, 0.2);
}

.action-btn svg {
    fill: currentColor;
}

/* Skeleton Loading */
.skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-card {
    height: 88px;
    /* Approx height of video card */
    background: #14151a;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #14151a 25%, #1A1C24 50%, #14151a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Loading State */
.loading-state {
    display: none;
}

/* Empty State */
.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
}

.empty-state p {
    color: #9699A3;
    font-size: 14px;
    margin: 0;
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

.error-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.error-state p {
    color: #FCA5A5;
    font-size: 14px;
    margin: 0 0 16px;
}

.retry-btn {
    padding: 10px 20px;
    background: #9D4EDD;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #9D4EDD;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Premium Leaderboard Button */
.leaderboard-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    background: #9D4EDD;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.leaderboard-text {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    z-index: 1;
}

.leaderboard-arrow {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    z-index: 1;
}

/* Refer & Earn Button */
.refer-earn-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #9D4EDD;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.refer-earn-btn:hover {
    background: #7B2CBF;
}

.refer-earn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    z-index: 1;
}

.refer-earn-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.refer-earn-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}

.refer-earn-arrow {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    z-index: 1;
}

/* Shine/Flash Effect */
.shine-effect {
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    transform: skewX(-20deg);
    animation: shine 2.5s infinite;
}

@keyframes shine {
    0% {
        left: -150%;
    }

    50%,
    100% {
        left: 150%;
    }
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🚨 FRAUD UI STYLES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Fraud-flagged video card */
.video-card.fraud-card {
    border: 2px solid #DC2626;
    opacity: 0.85;
}

.video-card.fraud-card:hover {
    transform: none;
}

/* Terminated badge */
.status-badge.terminated {
    background: linear-gradient(135deg, #DC2626, #991B1B);
    color: #fff;
    font-weight: 700;
}

.terminated-text {
    color: #DC2626;
    font-weight: 600;
}

/* Blocked Screen */
.blocked-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 20px;
}

.blocked-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.blocked-screen h1 {
    font-size: 28px;
    color: #DC2626;
    margin-bottom: 16px;
}

.blocked-message {
    font-size: 16px;
    color: #9699A3;
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.blocked-note {
    font-size: 14px;
    color: #6B7280;
    max-width: 400px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.contact-btn {
    background: linear-gradient(135deg, #9D4EDD, #7B2CBF);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(157, 78, 221, 0.3);
}

/* Fraud Strikes Counter */
.fraud-strikes-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    position: relative;
}

.fraud-strikes {
    color: #DC2626;
    font-size: 14px;
    font-weight: 600;
}

.fraud-info-icon {
    color: #DC2626;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.8;
}

.fraud-info-icon:hover {
    opacity: 1;
}

.fraud-tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #1E2028;
    border: 1px solid #DC2626;
    border-radius: 8px;
    padding: 12px;
    width: 250px;
    font-size: 12px;
    color: #9699A3;
    line-height: 1.5;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

.fraud-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Media ID on terminated cards */
.media-id-text {
    color: #6B7280;
    font-size: 11px;
    margin-left: 8px;
    font-weight: 500;
}

/* Media ID label on live cards - right side */
.media-id-label {
    float: right;
    color: #6B7280;
    font-size: 10px;
    font-weight: 500;
    opacity: 0.7;
}

/* Confirmation Popup */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.confirm-popup {
    background: #1E2028;
    border-radius: 16px;
    padding: 24px;
    max-width: 350px;
    text-align: center;
}

.confirm-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.confirm-popup h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.confirm-message {
    font-size: 14px;
    color: #9699A3;
    margin-bottom: 12px;
    line-height: 1.5;
}

.confirm-note {
    font-size: 12px;
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
}

.cancel-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 1px solid #3A3D4A;
    color: #9699A3;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
}

.confirm-btn {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #9D4EDD, #7B2CBF);
    border: none;
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   💵 USD EQUIVALENT DISPLAY
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* USD equivalent - smaller, secondary display */
.usd-equiv {
    font-size: 0.55em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 4px;
}

/* Specific contexts for USD styling */
.wallet-amount .usd-equiv {
    font-size: 0.5em;
    color: rgba(255, 255, 255, 0.7);
}

.stat-value .usd-equiv {
    font-size: 0.55em;
}

#totalEarns .usd-equiv {
    color: rgba(74, 222, 128, 0.6);
}

#totalWithdrawal .usd-equiv {
    color: rgba(248, 113, 113, 0.6);
}

/* Mobile responsive USD display - prevent cutoff on ALL mobile screens */
@media (max-width: 480px) {
    .usd-equiv {
        display: block;
        margin-left: 0;
        margin-top: 2px;
        font-size: 0.7em;
    }

    .wallet-amount .usd-equiv {
        font-size: 0.6em;
    }

    .stat-value .usd-equiv {
        font-size: 0.65em;
    }

    .milestone-usd {
        display: block;
        font-size: 10px;
    }
}

/* Outlined Action Buttons (No Inside Color) */
.dashboard-action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 24px;
    width: 100%;
}

.outline-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px; /* Vertically larger! */
    background: transparent;
    border: 1.5px solid rgba(157, 78, 221, 0.8);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.btn-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.btn-desc {
    font-size: 10px;
    font-weight: 500;
    color: #9699A3;
    line-height: 1.1;
}

.outline-btn:hover {
    background: rgba(157, 78, 221, 0.05);
    border-color: rgba(123, 44, 191, 0.8);
}

.outline-btn:hover .btn-icon {
    transform: scale(1.1);
}

.outline-btn:active {
    transform: scale(0.97);
    background: rgba(157, 78, 221, 0.1);
}

.outline-btn .btn-arrow {
    color: #9D4EDD;
    font-size: 18px;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.outline-btn:hover .btn-arrow {
    transform: translateX(3px);
}

@media (max-width: 480px) {
    .outline-btn {
        padding: 16px 14px; /* Vertically larger on mobile! */
        font-size: 12px;
    }
    
    .btn-content {
        gap: 8px;
    }
    
    .btn-icon {
        width: 18px;
        height: 18px;
    }
    
    .btn-title {
        font-size: 12px;
    }
    
    .btn-desc {
        font-size: 9px;
    }
    
    .outline-btn .btn-arrow {
        font-size: 15px;
    }
}

/* 💬 Floating Chat Button */
.floating-chat-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9D4EDD 0%, #7B2CBF 100%);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(157, 78, 221, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: floatingBounce 3s ease-in-out infinite;
}

.floating-chat-btn svg {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

.floating-chat-btn .chat-btn-text {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating-chat-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 30px rgba(157, 78, 221, 0.6);
    background: linear-gradient(135deg, #A74EEF 0%, #8C3CEF 100%);
}

.floating-chat-btn:active {
    transform: scale(0.95);
}

@keyframes floatingBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* On mobile, adjust position to not overlap other buttons */
@media (max-width: 480px) {
    .floating-chat-btn {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
}