/* assets/css/style.css */

:root {
    --primary: #10B981;
    /* Example Green from Pic 2 */
    --primary-dark: #059669;
    --sidebar-bg: #064e3b;
    --sidebar-text: #ffffff;
    --bg: #F3F4F6;
    /* Lighter gray/green tint */
    --text: #1F2937;
    --card-bg: #ffffff;
    --border: #E5E7EB;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Global Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #dcfce7;
}

/* --- Common Advertiser Layout --- */
.adv-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

.adv-sidebar,
.admin-sidebar,
.sidebar {
    width: 260px;
    background: #064e3b;
    /* Dark Green */
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar .logo-area,
.sidebar-header {
    padding: 10px 0 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.adv-content,
.main-content,
.admin-content {
    flex: 1;
    padding: 25px;
    /* Reduced padding for more professional look */
    margin-left: 290px;
    /* Increased gap from sidebar (260px sidebar + 30px gap) */
    width: calc(100% - 290px);
    box-sizing: border-box;
    position: relative;
    margin-top: 0;
}

/* Logo Styles (Desktop Default) */
.sidebar-header {
    padding: 20px 0 30px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    /* Center align for better look */
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center align */
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.sidebar-logo {
    height: 32px;
    /* Fixed height */
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    white-space: nowrap;
    /* Prevent breaking */
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-area img {
    height: 32px !important;
    width: auto !important;
    max-width: 100%;
}

.logo-area span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.logo-area a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
}


/* Navigation Links - Global (Unified) */
.nav-links,
.adv-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none !important;
    /* Force remove bullets */
    padding: 0;
    margin: 0;
    padding-bottom: 60px;
    /* Add padding to prevent last item (logout) from being cut off */
}

.nav-links li,
.element-reset {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.nav-links li a,
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #cbd5e1;
    /* Light gray text */
    text-decoration: none;
    border-radius: 8px;
    /* Rounded corners like Advertiser */
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.nav-links li a:hover,
.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(4px);
}

.nav-links li a.active,
.nav-link.active {
    background: #2E7D32;
    /* Primary Green */
    color: #fff;
    border: 1px solid #4ade80;
    /* Slight green border highlight */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-icon {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

/* --- Global Mobile Layout --- */
@media (max-width: 900px) {

    .layout-wrapper,
    .adv-layout,
    .admin-layout {
        flex-direction: column;
    }

    /* Transform Sidebar into Top Header */
    .sidebar,
    .adv-sidebar,
    .admin-sidebar {
        width: 100%;
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        /* Reset bottom */
        padding: 0 15px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        border-right: none;
        z-index: 2000;
    }

    /* Logo Adjustments */
    .sidebar-header {
        padding: 0;
        border-bottom: none;
        margin-bottom: 0;
    }

    .logo-link {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: #fff;
    }

    .sidebar-logo {
        height: 28px;
        /* Smaller logo on mobile */
        width: auto;
    }

    .logo-text {
        font-size: 1.1rem;
        /* Smaller text on mobile */
        font-weight: 700;
        color: #fff;
        line-height: 1;
    }

    .logo-area {
        display: flex;
        align-items: center;
        border: none;
        padding: 0;
        margin: 0;
    }

    /* Content push down */
    .main-content,
    .adv-content,
    .admin-content {
        margin-left: 0;
        width: 100%;
        margin-top: 130px;
        /* Increased to separate from nav bar */
        padding: 20px;
        min-height: calc(100vh - 110px);
    }

    /* Horizontal Scroll Navigation */
    .nav-links,
    .adv-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: row;
        border-bottom: 1px solid #e2e8f0;
        padding: 10px 15px;
        overflow-x: auto;
        white-space: nowrap;
        gap: 10px;
        z-index: 1001;
        /* Below header, above content */
        box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll iOS */
        height: 50px;
        align-items: center;
        list-style: none !important;
    }

    /* Hide Scrollbar */
    .nav-links::-webkit-scrollbar,
    .adv-nav::-webkit-scrollbar {
        display: none;
    }

    /* Pill-style Links for Mobile */
    .nav-links li,
    .adv-nav a {
        margin: 0;
        list-style: none !important;
    }

    .nav-links li a,
    .nav-link {
        flex-direction: row;
        background: #f1f5f9;
        color: #475569;
        padding: 6px 14px;
        border-radius: 50px;
        /* Pill shape */
        font-size: 0.85rem;
        border: 1px solid #e2e8f0;
        white-space: nowrap;
        height: auto;
    }

    .nav-links li a:hover,
    .nav-link:hover {
        transform: none;
        background: #e2e8f0;
    }

    .nav-links li a.active,
    .nav-link.active {
        background: #dcfce7;
        /* Light Green */
        color: #166534;
        /* Dark Green */
        border-color: #86efac;
        box-shadow: none;
    }

    .nav-icon {
        font-size: 1rem;
    }
}

/* --- Dashboard Stats Cards --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        /* Force 2 columns on mobile */
        gap: 15px;
        /* Reduce gap */
    }

    .stat-card {
        padding: 15px;
        /* Reduce padding to fit */
        min-height: auto;
    }

    .stat-value {
        font-size: 0.75rem;
        /* Small enough to fit */
        white-space: normal;
        /* Allow wrapping */
        overflow: visible;
        /* No hiding */
        text-overflow: clip;
        /* No dots */
        word-break: break-word;
        /* Break if too long */
        line-height: 1.2;
    }

    .stat-icon-action,
    .stat-icon-bg {
        font-size: 1rem;
        width: 28px;
        height: 28px;
    }
}

/* Custom Scrollbar - Professional & Smooth */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sidebar::-webkit-scrollbar-thumb,
.adv-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar::-webkit-scrollbar-thumb:hover,
.adv-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.stat-card {
    background: white;
    padding: 16px;
    /* Compact padding */
    border-radius: 12px;
    /* Smoother but tighter radius */
    /* softer rounded corners */
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto;
    /* Allow auto height for compactness */
    position: relative;
    overflow: hidden;
    text-decoration: none;
    /* Remove underline for anchor tags */
}

.stat-card:hover,
.hover-card:hover {
    transform: translateY(-2px);
    /* Subtle lift */
    box-shadow: 0 8px 12px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    border-color: #cbd5e1;
}

/* New Card Layout Structure */
.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Center align items */
    margin-bottom: 8px;
    /* Reduced margin */
}

.stat-title {
    color: #64748b;
    font-size: 0.8rem;
    /* Reduced from 0.85rem */
    font-weight: 600;
    letter-spacing: 0.01em;
}

.stat-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Align items center */
}

.stat-value {
    font-size: 1.1rem;
    /* Reduced from 1.35rem */
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

/* Icon Styles */
.stat-icon-action {
    font-size: 1.25rem;
    /* Smaller icons */
    opacity: 0.8;
}

.stat-icon-bg {
    width: 36px;
    /* Smaller background circle */
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Custom Gold Coin */
.custom-coin {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    border: 2px solid #fef3c7;
    border-radius: 50%;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    box-shadow: 0 4px 6px -1px rgba(217, 119, 6, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin-right: 8px;
}

.coin-balance-wrapper {
    display: flex;
    align-items: center;
}

.balance-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

/* Color Helpers */
.text-green {
    color: #16a34a;
}

.text-blue {
    color: #2563eb;
}

.text-red {
    color: #dc2626;
}

.text-orange {
    color: #ea580c;
}

.text-yellow {
    color: #ca8a04;
}

.bg-green-light {
    background: #dcfce7;
    color: #166534;
}

.bg-blue-light {
    background: #dbeafe;
    color: #1e40af;
}

.text-purple {
    color: #7e22ce;
}

.bg-purple-light {
    background: #f3e8ff;
    color: #6b21a8;
}

.bg-red-light {
    background: #fee2e2;
    color: #991b1b;
}

.bg-orange-light {
    background: #ffedd5;
    color: #9a3412;
}

.bg-yellow-light {
    background: #fef9c3;
    color: #854d0e;
}

/* Top Bar Styles (New) */
.top-bar {
    background: white;
    padding: 12px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
    gap: 10px;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 600px) {
    .card-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-header-flex form,
    .card-header-flex button {
        width: 100% !important;
    }
}

.btn-dark {
    background: #0f172a;
    color: white;
}

.btn-dark:hover {
    background: #1e293b;
}

.top-bar .logo-area {
    display: none;
    /* Hide redundant logo on desktop */
}

@media (max-width: 900px) {
    .top-bar .logo-area {
        display: flex;
        /* Show on mobile if needed */
    }
}

.page-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

.user-greeting {
    font-size: 0.9rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 5px;
}

.username {
    font-weight: 700;
    color: var(--primary);
}

/* --- Engagement Box --- */
.engagement-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05);
}

.engagement-header {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
}

.eng-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.eng-item {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.eng-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: block;
}

.eng-val {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
}

.eng-lbl {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 5px;
}

/* --- Quick Actions --- */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.quick-actions .btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    background: var(--primary);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}

/* --- CTA Banner --- */
.cta-banner {
    background: var(--primary);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    background-image: linear-gradient(135deg, #2E7D32 0%, #14532d 100%);
    box-shadow: 0 10px 15px -3px rgba(46, 125, 50, 0.3);
}

.cta-btn {
    background: white;
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: transform 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Wizard / Forms --- */
.wizard-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 40px;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
    transform: translateY(-50%);
}

.step-item {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #64748b;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    cursor: default;
}

.step-item.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.step-item.completed {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.step-item::after {
    content: attr(data-label);
    position: absolute;
    top: 45px;
    white-space: nowrap;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.step-content {
    display: none;
    animation: slideUp 0.4s ease forwards;
}

.step-content.active {
    display: block;
}

.wizard-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9;
}

.btn-next,
.btn-prev {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-next {
    background: var(--primary);
    color: white;
}

.btn-prev {
    background: #f1f5f9;
    color: #64748b;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.type-card {
    padding: 15px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    background: #f8fafc;
}

.type-card.selected {
    border-color: var(--primary);
    background: #ecfdf5;
    color: #065f46;
}

.upgrade-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.upgrade-card {
    padding: 20px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.upgrade-card.selected {
    border-color: var(--primary);
    background: #ecfdf5;
}

.badge-upgrade {
    position: absolute;
    top: -10px;
    right: 15px;
    background: #f59e0b;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
}

.preview-table td {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.preview-label {
    font-weight: 500;
    color: #64748b;
}

.preview-val {
    font-weight: 600;
    text-align: right;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-btn-primary,
.btn {
    background: var(--primary);
    color: white;
    width: 100%;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-block;
    text-align: center;
}

.auth-btn-primary:hover,
.btn:hover {
    background: #14532d;
}

/* --- Deposit Page --- */
.deposit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media(max-width: 900px) {
    .deposit-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05);
}

.bank-details {
    background: #fffbeb;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #fcd34d;
    color: #92400e;
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: none;
}

.bank-details.active {
    display: block;
    animation: fadeIn 0.3s;
}

/* --- Campaign Cards --- */
.campaign-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.s-pending {
    background: #fef3c7;
    color: #d97706;
}

.s-approved {
    background: #dcfce7;
    color: #166534;
}

.s-rejected {
    background: #fee2e2;
    color: #991b1b;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Data Table Styling --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.data-table thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 24px;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
}

.data-table tbody td {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* User Profile Cell */
.user-profile-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-initial {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.user-info-text {
    display: flex;
    flex-direction: column;
}

.user-info-text strong {
    color: #0f172a;
    font-size: 0.95rem;
}

.user-info-text small {
    color: #64748b;
    font-size: 0.85rem;
}

/* Status Pills */
.status-pill {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-active {
    background: #dcfce7;
    color: #15803d;
}

.status-inactive {
    background: #fee2e2;
    color: #b91c1c;
}

.status-pending {
    background: #fef9c3;
    color: #854d0e;
}

/* Scrollbar Styling for Rates */
.rates-container::-webkit-scrollbar {
    width: 6px;
}

.rates-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.rates-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.rates-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.rate-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: transform 0.1s;
}

.rate-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    background: #fff;
}

/* Action Buttons */
.action-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background: #fee2e2;
    color: #dc2626;
}

.btn-danger:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.btn-success {
    background: #dcfce7;
    color: #16a34a;
}

.btn-success:hover {
    background: #dcfce7;
    color: #15803d;
}

.id-badge {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: monospace;
}

.font-bold {
    font-weight: 700;
}

/* --- Form Grid Layout --- */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.span-2 {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }
}

/* --- Filter Tabs --- */
.tab-link {
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    background: #f1f5f9;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.tab-link:hover {
    background: #e2e8f0;
    color: #334155;
}

.tab-link.active {
    background: #dcfce7;
    color: #15803d;
    border-color: #86efac;
}

/* Proof Styling */
.proof-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    background: #eff6ff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.proof-link:hover {
    background: #dbeafe;
}

.proof-text-preview {
    font-family: monospace;
    background: #f8fafc;
    padding: 6px;
    border-radius: 4px;
    color: #475569;
    font-size: 0.85rem;
    border: 1px solid #e2e8f0;
}

/* Highlight Unread Row */
.highlight-row {
    background-color: #fefce8 !important;
    /* Gentle yellow highlight */
}

.highlight-row:hover {
    background-color: #fef9c3 !important;
}

.action-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.1s;
}

.btn-icon:hover {
    transform: scale(1.1);
}

/* --- Task Grid & Cards --- */
.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding-bottom: 30px;
}

.task-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.task-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-box.youtube {
    background: #fee2e2;
    color: #dc2626;
}

.icon-box.survey {
    background: #e0e7ff;
    color: #4338ca;
}

.icon-box.default {
    background: #fef3c7;
    color: #d97706;
}

.task-meta-top {
    display: flex;
    gap: 8px;
}

.difficulty-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.difficulty-badge.easy {
    background: #dcfce7;
    color: #15803d;
}

.difficulty-badge.medium {
    background: #fef9c3;
    color: #854d0e;
}

.difficulty-badge.hard {
    background: #fee2e2;
    color: #b91c1c;
}

.device-badge {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.task-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 15px 0;
    line-height: 1.4;
    flex: 1;
    /* Push footer down */
}

.task-reward-section {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background: #fffbeb;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #fcd34d;
    max-width: fit-content;
}

.custom-coin.sm {
    width: 24px;
    height: 24px;
    font-size: 14px;
    margin-right: 8px;
}

.reward-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: #92400e;
    margin-right: 5px;
}

.reward-label {
    font-size: 0.85rem;
    color: #b45309;
    font-weight: 600;
}

.task-details {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #64748b;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-task-action {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    width: 100%;
    display: block;
    box-sizing: border-box;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.btn-task-action:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(16, 185, 129, 0.3);
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

/* Filter Bar Styling */
.task-filter-bar {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.task-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* --- Task Submit Page --- */
.task-submit-container {
    padding: 0 10px;
}

.back-link {
    display: inline-block;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
}

.back-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.task-submit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.task-reward-pill {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reward-amount-lg {
    font-size: 1.1rem;
    font-weight: 700;
    color: #92400e;
}

.task-action-box {
    text-align: center;
    background: #f0fdf4;
    border: 1px dashed #4ade80;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.btn-visit-link {
    background: #e11d48;
    color: white;
    padding: 14px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 6px -1px rgba(225, 29, 72, 0.3);
    transition: all 0.2s;
}

.btn-visit-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(225, 29, 72, 0.4);
    background: #be123c;
}

.action-hint {
    margin-top: 15px;
    color: #64748b;
    font-size: 0.95rem;
}

.instructions-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.box-title {
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    color: #334155;
}

.instruction-text {
    line-height: 1.6;
    color: #475569;
    font-size: 1rem;
    margin-bottom: 20px;
}

.task-requirements {
    display: flex;
    gap: 20px;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
}

.req-item {
    display: flex;
    flex-direction: column;
}

.req-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
}

.req-value {
    font-weight: 600;
    color: #1e293b;
}

.submit-form {
    margin-top: 20px;
}

.form-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #1e293b;
}

.btn-submit-proof {
    background: var(--primary);
    color: white;
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.btn-submit-proof:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
}

@media (max-width: 640px) {
    .task-submit-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-visit-link {
        width: 100%;
        box-sizing: border-box;
    }
}

.custom-coin.sm {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
}

.custom-coin.xs {
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
}

/* --- Card Header Flex Layout --- */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    /* Spacing for table */
    flex-wrap: wrap;
    gap: 15px;
}

.status-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .card-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }
}

.social-share-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    box-shadow: 0 4px 6px -1px rgba(37, 211, 102, 0.3);
}

.share-btn.native {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 6px -1px rgba(225, 48, 108, 0.3);
}

.share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* --- Profile Grid --- */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Advertiser Portal Layout --- */
.adv-layout {
    display: flex;
    min-height: 100vh;
    background: #f0fdf4;
}

.adv-sidebar {
    width: 260px;
    background: #064e3b;
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
}

.adv-content {
    flex: 1;
    padding: 30px;
    margin-left: 260px !important;
    width: calc(100% - 260px);
    box-sizing: border-box;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-area a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
}

.logo-area img {
    height: 32px !important;
    width: auto !important;
}

.adv-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.adv-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 16px;
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.adv-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.adv-nav .nav-link.active {
    background: #2E7D32;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-right: 4px solid #86efac;
}

@media (max-width: 900px) {
    .adv-layout {
        flex-direction: column;
    }

    .adv-sidebar {
        width: 100%;
        height: 60px;
        position: fixed;
        padding: 10px 15px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        overflow: visible;
    }

    .adv-content {
        margin-left: 0 !important;
        width: 100%;
        margin-top: 110px;
        padding: 20px;
    }

    .adv-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: row;
        border-bottom: 1px solid #e2e8f0;
        padding: 10px 15px;
        overflow-x: auto;
        white-space: nowrap;
        gap: 15px;
        z-index: 999;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }

    .adv-nav .nav-link {
        flex-direction: row;
        background: #f8fafc;
        color: #475569;
        padding: 8px 16px;
        border-radius: 50px;
        font-size: 0.85rem;
        border: 1px solid #e2e8f0;
    }

    .adv-nav .nav-link.active {
        background: #dcfce7;
        color: #166534;
        border-color: #dcfce7;
    }
}

/* Engagement & CTA Styles */
.engagement-box {
    margin-bottom: 30px;
}

.eng-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.eng-item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.2s;
}

.eng-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.eng-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.eng-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}

.eng-lbl {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.cta-banner {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    color: #fff;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(6, 78, 59, 0.3);
}

.cta-btn {
    display: inline-block;
    background: #fff;
    color: #064e3b;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 15px;
    transition: all 0.2s;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Professional Withdraw Layout */
.withdraw-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    padding: 10px;
    margin-bottom: 30px;
    align-items: start;
}

@media (max-width: 991px) {
    .withdraw-grid {
        grid-template-columns: 1fr;
    }
}

.withdraw-summary-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Fix for the "Yellow Box" (Reward Pill) on Withdraw Page */
.withdraw-summary-card .task-reward-pill {
    max-width: 100%;
    margin-bottom: 25px;
    width: auto;
    display: inline-flex;
    /* Changed to inline-flex to only take needed space */
    align-self: center;
    /* Center in the flex container */
    justify-content: center;
    padding: 12px 20px;
    box-sizing: border-box;
}


.summary-stat {
    padding: 15px 0;
    border-bottom: 1px dashed #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-stat:last-child {
    border-bottom: none;
}

.summary-label {
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

.summary-value {
    color: #1e293b;
    font-weight: 700;
    font-size: 1rem;
}

/* Visual Payment Methods */
.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.method-card {
    background: #fff;
    border: 2px solid #f1f5f9;
    padding: 15px 10px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    position: relative;
}

.method-card:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.method-card.selected {
    border-color: #10b981;
    background: #ecfdf5;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.method-card.selected::after {
    content: "✓";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #10b981;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    line-height: 20px;
    font-weight: bold;
}

.method-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 8px;
}

.method-name {
    font-weight: 700;
    font-size: 0.8rem;
    color: #475569;
    white-space: nowrap;
}

.receive-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.receive-label {
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
}

.receive-value {
    color: #059669;
    font-weight: 800;
    font-size: 1.25rem;
}

.payout-btn {
    width: 100%;
    background: #064e3b;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.payout-btn:hover {
    background: #065f46;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.2);
}

/* Professional Toast Notifications */
.toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: #ffffff;
    padding: 14px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
    border-left: 6px solid #10b981;
    transform: translateX(150%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 300px;
    max-width: 450px;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    font-size: 1.2rem;
}

/* --- Responsive Referral Layout --- */
.ref-link-row-main {
    display: flex;
    gap: 10px;
}

.ref-link-row-main .form-control {
    flex: 1;
}

.desktop-copy {
    width: auto;
    padding: 0 25px;
    white-space: nowrap;
}

.mobile-copy {
    display: none;
}

.social-share-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-share-actions>* {
    flex: 1;
}

@media (max-width: 768px) {
    .ref-link-row-main {
        flex-direction: column;
    }

    .ref-link-row-main .form-control {
        width: 100% !important;
        margin-bottom: 0px;
    }

    .desktop-copy {
        display: none;
    }

    .mobile-copy {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 45px;
        padding: 0 !important;
    }

    .social-share-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .social-share-actions .whatsapp {
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
    }

    .social-share-actions .native {
        grid-column: span 2;
        width: 100%;
    }
}

/* --- Live Activity (TV Style) Widget --- */
.live-tv-container {
    background: #0f172a;
    /* Midnight Blue / Dark */
    border-radius: 12px;
    padding: 10px 18px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(16, 185, 129, 0.05);
    position: relative;
    overflow: hidden;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.15);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-red-live 1.5s infinite;
}

@keyframes pulse-red-live {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

.tv-screen {
    flex: 1;
    height: 24px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.tv-message {
    color: #10B981;
    /* Neon Green */
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    opacity: 0;
    animation: tv-slide-fade 4.5s linear;
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
}

@keyframes tv-slide-fade {
    0% {
        transform: translateY(15px);
        opacity: 0;
    }

    5% {
        transform: translateY(0);
        opacity: 1;
    }

    95% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-15px);
        opacity: 0;
    }
}

.tv-glitch {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 2px);
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 600px) {
    .live-tv-container {
        padding: 6px 10px;
        margin-bottom: 20px;
        gap: 8px;
    }

    .tv-message {
        font-size: 0.75rem;
        letter-spacing: -0.2px;
    }

    .live-indicator {
        padding: 2px 6px;
        font-size: 0.6rem;
        gap: 4px;
    }

    .live-dot {
        width: 4px;
        height: 4px;
    }
}