/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}


/* Navigation */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    gap: 4px;
}

.nav-mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #0f172a;
    border-radius: 999px;
    transition: transform 0.2s ease;
}

.main-nav.mobile-open .nav-mobile-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.main-nav.mobile-open .nav-mobile-toggle span:nth-child(2) {
    transform: scaleX(0);
}

.main-nav.mobile-open .nav-mobile-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-links a {
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
}

.nav-link.active,
.nav-links a.active {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.nav-links a:hover {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.nav-links a#profileLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-links a#profileLink img {
    display: block;
    border-radius: 999px;
}

.nav-links a:hover {
    text-decoration: none;
}

.more-menu {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.more-toggle {
    background: none;
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

/* .more-toggle:hover {
    background-color: #222;
    color: #fff;
} */
.more-toggle:hover {
    background-color: #a9a9a9;
    color: #fff;
}

.more-menu-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    min-width: 200px;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 1100;
}

.more-menu.open .more-menu-list {
    display: flex;
}

.more-menu-list a {
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.more-menu-list .nav-link {
    justify-content: flex-start;
    width: 100%;
}

body.nav-menu-open {
    overflow: hidden;
}

.users-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: #555;
}

.users-status {
    font-weight: 600;
    color: #666;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.user-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.user-card-header h3 {
    font-size: 1.05rem;
    color: #222;
}

.user-role {
    background-color: #eef3ff;
    color: #2f4aa1;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.user-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.user-card-tags span {
    background-color: #f5f5f5;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #555;
}

.user-card .user-copy {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.user-earnings {
    margin-top: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.user-earnings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.user-earnings-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #222;
}

.user-earnings-status {
    color: #666;
    font-weight: 500;
}

.user-earnings-content {
    display: none;
}

.user-earnings .summary-cards {
    margin-bottom: 1rem;
}

.user-earnings-table .total-row {
    background-color: #f5f5f5;
    font-weight: 600;
}

.user-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 10000;
}

.user-modal.active {
    display: flex;
}

.user-modal-card {
    background-color: #fff;
    border-radius: 16px;
    width: min(720px, 95vw);
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.user-modal-header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.user-modal-body {
    padding: 1rem 1.5rem;
    overflow-y: auto;
    display: grid;
    gap: 0.6rem;
}

.user-detail-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    border-bottom: 1px dashed #eee;
    padding-bottom: 0.4rem;
}

.user-detail-key {
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

.user-detail-value {
    color: #222;
    word-break: break-word;
}

.user-detail-json {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    background: #f5f5f5;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #333;
}

.user-modal-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.user-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1f2937;
    color: #fff;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10001;
}

.user-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 640px) {
    .user-detail-row {
        grid-template-columns: 1fr;
    }

    .preview-modal-card {
        padding: 1rem;
        border-radius: 16px;
        max-height: 88vh;
    }

    .preview-modal-title {
        font-size: 1.05rem;
    }

    .preview-modal-card img,
    .preview-modal-card video {
        max-height: 60vh;
        border-radius: 12px;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dashboard Board */
.dashboard-board {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    margin: 1rem auto;
    max-width: 1200px;
    border-radius: 10px;
    display: none;
}

#board-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cylindrical-values {
    display: flex;
    gap: 2rem;
}

.cylinder {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.count {
    font-size: 2rem;
    font-weight: bold;
}

.count.purple { color: #9c27b0; }
.count.green { color: #4caf50; }
.count.red { color: #f44336; }

.label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.view-uploads {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 2px solid white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.view-uploads:hover {
    background-color: white;
    color: #667eea;
}

/* Content Sections */
.content-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select,
.date-picker {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 0.9rem;
}

/* Videos Grid */
.videos-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.category-section {
    margin-bottom: 2rem;
}

.category-section-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #222;
}

.category-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x proximity;
}

.category-grid .video-item {
    flex: 0 0 clamp(240px, 32vw, 320px);
    scroll-snap-align: start;
}

.video-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.video-preview {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-preview img,
.video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-preview video {
    background: #000;
}

.video-toggle {
    position: absolute;
    inset: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.video-toggle:hover {
    background: rgba(15, 23, 42, 0.9);
    transform: translate(-50%, -50%) scale(1.05);
}

.video-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 2;
}

.video-info {
    padding: 1rem;
}

.creator-id,
.creator-name {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #666;
}

.rank-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.shares {
    font-size: 0.9rem;
    color: #333;
}

.share-count {
    font-weight: bold;
    color: #2196f3;
}

/* Mobile Navigation */
.toggle-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.toggle-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: #666;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toggle-button.active {
    color: #2196f3;
    background-color: rgba(33, 150, 243, 0.1);
}

/* Mobile Dashboard */
.mobile-dashboard {
    padding: 1rem;
    padding-bottom: 60px; /* Account for fixed navigation */
}

.mobile-videos-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-filters {
    padding: 1rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.mobile-filter-group {
    display: none;
}

.mobile-filter-group.active {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-filter-select,
.mobile-date-picker {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

@media (min-width: 769px) {
    .toggle-container,
    .mobile-filters,
    .mobile-dashboard {
        display: none;
    }
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    background-color: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2196f3;
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #1976d2;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #666;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #ddd;
}

.divider span {
    padding: 0 1rem;
}

.btn-google {
    width: 100%;
    padding: 0.75rem;
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-google:hover {
    background-color: #f5f5f5;
}

.error-message {
    color: #f44336;
    text-align: center;
    margin-top: 1rem;
    display: none;
}

/* Create User Page */
.create-user-page {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.create-user-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.create-user-container h2 {
    margin-bottom: 2rem;
    color: #333;
}

/* User Incentive Page */
.user-incentive-page {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.incentive-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.incentive-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: #666;
}

.filter-group select,
.filter-group input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
}

.btn-with-spinner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(15, 23, 42, 0.2);
    border-top-color: #0f172a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-secondary.is-loading .btn-spinner {
    display: inline-block;
}

.btn-secondary.is-loading .btn-label {
    opacity: 0.7;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.summary-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.summary-amount {
    font-size: 2rem;
    font-weight: bold;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.performance-summary {
    margin-top: 0.5rem;
    font-weight: 600;
    color: #555;
}

.performance-status {
    margin-top: 1rem;
    text-align: center;
    color: #666;
    display: none;
}

.performance-status.error {
    color: #f44336;
}

.performance-table .overall-row {
    background-color: #fff8e1;
    font-weight: 600;
}

.performance-table .deleted-row {
    background-color: #ffe5e5;
    color: #8b1e1e;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

table th {
    background-color: #f5f5f5;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

table tr:hover {
    background-color: #f9f9f9;
}

/* Modals and Popups */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-overlay:target,
.modal-overlay[style*="display: flex"] {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: #333;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-danger {
    padding: 0.75rem 1.5rem;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

/* Preview Modal */
.preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.preview-modal {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-modal-btn:hover {
    background-color: #f5f5f5;
}

.preview-content {
    display: flex;
    gap: 2rem;
}

.preview-left {
    flex: 1;
    min-width: 300px;
}

/* Low Performance Board */
.low-performance-board {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem auto;
    max-width: 1200px;
    display: none;
}

.low-performance-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.low-performance-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.low-number {
    background-color: #dc3545;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.low-text {
    font-weight: 500;
    color: #856404;
}

.low-subtitle {
    color: #856404;
    font-size: 0.9rem;
    margin: 0;
}

.low-content-cta {
    align-self: flex-start;
    padding: 0.5rem 1.5rem;
    background-color: #856404;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.low-content-cta:hover {
    background-color: #6c5203;
}

/* Responsive Design */
@media (max-width: 768px) {
    #dashboardPage {
        min-height: auto;
        padding-top: 0;
    }

    .nav-container {
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        gap: 0.5rem;
    }

    .nav-links {
        display: none !important;
        position: fixed;
        top: 72px;
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(226, 232, 240, 0.9);
        border-radius: 16px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
        max-height: calc(100vh - 96px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .main-nav.mobile-open .nav-links {
        display: flex !important;
    }
    
    .nav-links a {
        padding: 0.5rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .nav-mobile-toggle {
        display: inline-flex;
    }

    .more-menu {
        width: 100%;
    }

    .more-menu-list {
        position: static;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        overflow: visible;
    }

    #my-content .category-grid {
        display: grid;
        grid-template-columns: 1fr;
        overflow: visible;
    }

    #my-content .category-grid .video-item,
    .category-grid .video-item {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
    
    .preview-content {
        flex-direction: column;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .incentive-filters {
        grid-template-columns: 1fr;
    }

    .content-section {
        margin: 0.75rem auto 1.25rem;
        padding: 0 0.75rem;
    }

    .section-header h2 {
        font-size: 1.35rem;
    }

    .category-section-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .filter-select,
    .date-picker {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    .video-preview {
        height: 170px;
    }

    .video-info {
        padding: 0.85rem;
    }

    .content-actions .btn-primary,
    .content-actions .btn-secondary {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .login-container,
    .create-user-container,
    .incentive-container {
        padding: 1.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .table-container {
        font-size: 0.9rem;
    }
    
    table th,
    table td {
        padding: 0.75rem 0.5rem;
    }

    .content-section {
        margin: 1rem auto;
        padding: 0 0.6rem;
    }

    .section-header h2 {
        font-size: 1.2rem;
    }

    .category-section-title {
        font-size: 1rem;
    }

    .video-preview {
        height: 150px;
    }

    .video-info {
        padding: 0.75rem;
    }

    .video-number {
        font-size: 0.7rem;
        padding: 0.2rem 0.55rem;
    }

    .creator-name {
        font-size: 0.95rem;
    }

    .creator-id {
        font-size: 0.8rem;
    }
}

/* Campaign Board Styles */
.campaign-board-container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1rem;
}

.campaign-header {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.campaign-header-language {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 0.8rem;
    color: #666;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 10px;
}

.mega-cam-heading {
    flex: 1;
}

.mega-heading-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.mega-heading-deadline {
    color: #666;
    font-size: 0.9rem;
}

.date-range-button {
    display: inline-block;
    background-color: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    margin-left: 0.5rem;
}

.header-item.prize-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.prize-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coins-image {
    width: 24px;
    height: 24px;
}

.winner-gets {
    font-weight: 500;
    color: #333;
}

.rank-details {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.rank-image {
    width: 20px;
    height: 20px;
}

.fixed-per-content {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.campaign-upload-btn,
.campaign-live-ranking-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.campaign-upload-btn {
    background-color: #2196f3;
    color: white;
}

.campaign-upload-btn:hover {
    background-color: #1976d2;
}

.campaign-live-ranking-btn {
    background-color: #f0f0f0;
    color: #333;
}

.campaign-live-ranking-btn:hover {
    background-color: #e0e0e0;
}

.campaign-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    border: 1px solid #ddd;
    background-color: #f6f6f6;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
}

.tab-btn.active {
    background-color: #2196f3;
    color: #fff;
    border-color: #2196f3;
}

/* Uploads Page */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.upload-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upload-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.upload-card-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #333;
}

.upload-status {
    font-size: 0.8rem;
    color: #fff;
    background-color: green;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.upload-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #555;
}

.upload-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.upload-status-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

.shape-size-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.shape-size-control input[type="range"] {
    flex: 1;
}

.keyword-control {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.keyword-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.keyword-row input {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.keyword-chip {
    background: #f1f1f1;
    border-radius: 14px;
    padding: 0.25rem 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.keyword-remove {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
}

.keyword-hint {
    color: #777;
}

.upload-preview img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.upload-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.shape-overlay {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 30%;
    cursor: grab;
    opacity: 0;
    border: none;
    box-shadow: none;
    touch-action: none;
    pointer-events: auto;
}

.shape-profile {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 30%;
    height: 30%;
    object-fit: cover;
    pointer-events: none;
    z-index: 2;
    border: none;
    outline: none;
    box-shadow: none;
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
}

.shape-outline {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 30%;
    height: 30%;
    border: 2px dashed rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
    pointer-events: none;
    z-index: 4;
}

.shape-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2000;
}

.shape-modal.active {
    display: flex;
}

.shape-modal-card {
    background: #fff;
    border-radius: 12px;
    width: min(900px, 95vw);
    max-height: 80vh;
    overflow: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shape-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shape-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.shape-controls input[type="range"] {
    flex: 1;
}

.shape-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.shape-card {
    border: 1px solid #eee;
    background: #fafafa;
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    cursor: pointer;
}

.shape-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.shape-card span {
    font-size: 0.85rem;
    color: #333;
    text-align: center;
}

.preview-stage {
    display: flex;
    justify-content: center;
    padding: 1rem 0 0;
}

.preview-clone {
    max-width: 420px;
    width: 100%;
}

.preview-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 3000;
}

.preview-modal.active {
    display: flex;
}

#contentPreviewModal {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
}

.preview-modal-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    padding: 1.5rem;
    border-radius: 20px;
    max-width: 920px;
    width: min(92vw, 920px);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.preview-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.preview-modal-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.2rem;
}

.preview-modal-title {
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 600;
}

.preview-modal-close {
    border: none;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.preview-modal-close:hover {
    background: rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

.preview-modal-card img,
.preview-modal-card video {
    width: 100%;
    max-height: 65vh;
    border-radius: 16px;
    object-fit: contain;
    align-self: center;
    margin: 0 auto;
}

.preview-media {
    position: relative;
    display: inline-block;
    max-width: 100%;
    align-self: center;
    margin: 0 auto;
}

.preview-media img {
    width: auto;
    max-width: 100%;
    max-height: 65vh;
    display: block;
}

.preview-shape {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    object-fit: contain;
}

.preview-profile {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    object-fit: cover;
}

.content-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.content-actions-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.upload-input {
    display: none;
}

.upload-filename {
    font-size: 0.85rem;
    color: #666;
}

/* Live Results Banner */
.live-ranks-container,
.m-live-ranks-container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1rem;
}

.live-results-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.live-results-content {
    flex: 1;
    overflow: hidden;
}

.live-results-scroll {
    display: flex;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.live-results-text {
    display: flex;
    gap: 0.5rem;
    white-space: nowrap;
}

.live-bullet {
    color: #ffd700;
    margin-right: 0.25rem;
}

.live-label {
    font-weight: bold;
    margin-right: 0.5rem;
}

.campaign-separator {
    margin: 0 0.5rem;
    opacity: 0.7;
}

.campaign-item {
    color: #ffd700;
    font-weight: 500;
}

.past-campaign-button {
    padding: 0.5rem 1.5rem;
    background-color: white;
    color: #ee5a52;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.past-campaign-button:hover {
    background-color: #f0f0f0;
}

/* Phone App Banner */
.phone-app-banner,
.m-phone-app-banner {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 1rem;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: space-between;
    color: white;
    cursor: pointer;
}

.phone-app-banner {
    padding: 1.5rem;
}

.m-phone-app-banner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
}

.primo-logo {
    height: 40px;
    width: auto;
}

.store-logo {
    height: 30px;
    width: auto;
}

.phone-banner-text {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.m-phone-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile Shares Counter */
.m-shares-container {
    position: fixed;
    top: 70px;
    right: 20px;
    background-color: white;
    padding: 0.75rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: none;
    align-items: center;
    gap: 0.5rem;
    z-index: 999;
}

.share-count {
    font-weight: bold;
    color: #2196f3;
    font-size: 1.1rem;
}

.share-label {
    color: #666;
    font-size: 0.9rem;
}

/* Category Edit Modal Specific */
#modalCategoryDropdown {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
}

#modalSelectedCategories {
    min-height: 60px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

/* Video Menu Styles */
.video-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    cursor: pointer;
}

.video-menu svg {
    color: white;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 4px;
    width: 24px;
    height: 24px;
}

.video-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: none;
    min-width: 120px;
    z-index: 100;
}

.video-menu-dropdown.show {
    display: block;
}

.video-menu-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.video-menu-option:hover {
    background-color: #f5f5f5;
}

.video-menu-option.delete {
    color: #f44336;
}

/* Brief Popup */
.brief-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.brief-popup-overlay.visible {
    display: flex;
}

.brief-popup {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.brief-popup.visible {
    transform: scale(1);
    opacity: 1;
}

.brief-popup-message {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.brief-popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.brief-popup-close:hover {
    background-color: #f5f5f5;
}

/* Custom Dropdown */
.custom-dropdown-container {
    position: relative;
    width: 100%;
}

.custom-dropdown-selected {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.custom-dropdown-list.hidden {
    display: none;
}

#customDropdownSearch {
    width: calc(100% - 2px);
    padding: 0.75rem;
    border: none;
    border-bottom: 1px solid #ddd;
    margin: 0;
    border-radius: 4px 4px 0 0;
}

#customDropdownOptions {
    max-height: 250px;
    overflow-y: auto;
}

.dropdown-option {
    padding: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-option:hover {
    background-color: #f5f5f5;
}

/* Payment Details */
.payment-details-container {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.payment-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.details-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.details-summary {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.delete-bank-details-btn-table {
    padding: 0.25rem 0.75rem;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-bank-details-btn-table:hover {
    background-color: #d32f2f;
}

/* Search Results Table */
#results-table {
    margin-top: 1rem;
    font-size: 0.9rem;
}

#results-table th {
    background-color: #f8f9fa;
    font-size: 0.8rem;
    padding: 0.75rem;
}

#results-table td {
    padding: 0.75rem;
    vertical-align: middle;
}

.table-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 0.9rem;
}

.edit-button,
.disable-button,
.enable-button,
.edit-categories-button {
    padding: 0.25rem 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-button {
    background-color: #2196f3;
    color: white;
}

.edit-button:hover {
    background-color: #1976d2;
}

.disable-button {
    background-color: #f44336;
    color: white;
}

.disable-button:hover {
    background-color: #d32f2f;
}

.enable-button {
    background-color: #4caf50;
    color: white;
}

.enable-button:hover {
    background-color: #388e3c;
}

.edit-categories-button {
    background-color: #ff9800;
    color: white;
}

.edit-categories-button:hover {
    background-color: #f57c00;
}

.disabled-button {
    opacity: 0.5;
    cursor: not-allowed;
}

/* TnC Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.popup-content.wide {
    max-width: 800px;
}

.popup-title {
    margin-bottom: 1rem;
    color: #333;
}

.tnc-content {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.accept-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.accept-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.accept-button:not(:disabled):hover {
    background-color: #1976d2;
}

/* CCA Agreement Styles */
.cca-accept-button,
.cca-submit-button {
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cca-accept-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.cca-submit-button {
    background-color: #4caf50;
    display: none;
}

.cca-submit-button:not(:disabled):hover {
    background-color: #388e3c;
}

/* Bank Details Popup */
.bank-details-note,
.bank-details-note-2 {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #856404;
    display: none;
}

.bank-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Animation for low content warning */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.low-content-warning {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
    animation: pulse 2s infinite;
}

/* Top Content Blur Effect */
.top-content-blur {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
}

.content-blur {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 70%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}

/* View Button */
.view-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    z-index: 2;
}

.eye-img {
    width: 16px;
    height: 16px;
}

/* Sticker Used Badge */
.sticker-used {
    position: absolute;
    top: -25px;
    right: 10px;
    background-color: #ff9800;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Bonus Amount Styling */
.bonus {
    padding: 0.5rem;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    border-radius: 0 0 8px 8px;
    margin-top: -1px;
}

.bonus-thousand,
.bonus-five,
.bonus-three {
    font-size: 1rem;
    margin: 0;
}

/* Category Groups */
.category-group {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
    padding-left: 0.5rem;
    border-left: 4px solid #2196f3;
}

.top-item-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Reason Removal */
.reason-removal {
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Animation for live results */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.live-results-scroll {
    display: flex;
    animation: scroll 20s linear infinite;
}

.live-results-text {
    display: flex;
    gap: 0.5rem;
    white-space: nowrap;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .campaign-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .header-item.cta {
        flex-direction: column;
        width: 100%;
    }
    
    .campaign-upload-btn,
    .campaign-live-ranking-btn {
        width: 100%;
        justify-content: center;
    }
    
    .mega-cam-heading {
        text-align: center;
    }
    
    .live-results-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .past-campaign-button {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .toggle-container,
    .main-nav,
    .btn-secondary,
    .btn-primary,
    .video-menu,
    .view-btn,
    .popup-overlay,
    .modal-overlay {
        display: none !important;
    }
    
    .dashboard-board,
    .content-section {
        break-inside: avoid;
    }
    
    table {
        break-inside: auto;
    }
    
    tr {
        break-inside: avoid;
        break-after: auto;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Space+Grotesk:wght@400;500;600;700&display=swap');
