/* Admin Dashboard Styles */

.admin-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Admin Sidebar */
.admin-sidebar {
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
}

.admin-sidebar .sidebar-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    position: relative;
}

.admin-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e53935;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.admin-sidebar .sidebar-menu li a {
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.9);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.admin-sidebar .sidebar-menu li a:hover,
.admin-sidebar .sidebar-menu li a.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #ffd600;
    color: #fff;
}

.admin-sidebar .sidebar-menu li a .icon {
    font-size: 18px;
    margin-right: 12px;
    width: 24px;
    display: inline-block;
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 20px;
}

/* Admin Header */
.admin-header {
    background: linear-gradient(90deg, #158173 0%, #1976d2 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #ffd600;
    padding: 0 16px;
    min-height: 65px;
}

.admin-header .header-left .logo-container h3 {
    color: #ffd600;
    font-weight: 600;
}

.admin-header .header-center {
    gap: 24px;
}

.admin-header .header-right {
    gap: 12px;
}

/* Admin System Status */
.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
    animation: pulse 2s infinite;
}

.status-indicator.online {
    background: #4caf50;
}

.status-indicator.offline {
    background: #f44336;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.3);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 4px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* Admin Quick Stats */
.quick-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    min-width: 60px;
    font-size: 12px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    font-weight: 500;
}

.stat-value {
    color: #ffd600;
    font-weight: 700;
    font-size: 14px;
}

/* Admin Actions */
.admin-actions {
    gap: 8px;
}

.admin-actions .icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.admin-actions .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-btn {
    background: rgba(229, 57, 53, 0.2) !important;
}

.alert-btn:hover {
    background: rgba(229, 57, 53, 0.3) !important;
}

/* Admin User Menu */
.admin-actions .user-info {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.admin-actions .user-info strong {
    display: block;
    color: #333;
    font-size: 14px;
}

.admin-actions .user-info small {
    color: #666;
    font-size: 12px;
}

/* View Switcher */
.view-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 4px;
    gap: 4px;
    margin: 0 20px;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 100px;
    justify-content: center;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
}

.view-btn.active {
    background: #ffd600;
    color: #1976d2;
    box-shadow: 0 2px 8px rgba(255, 214, 0, 0.3);
}

.view-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

@media (max-width: 768px) {
    .view-switcher {
        margin: 0 10px;
    }
    
    .view-btn {
        min-width: 80px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .view-btn span {
        display: none;
    }
    
    .view-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* System Status */
.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-right: 20px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    animation: pulse 2s infinite;
}

.status-indicator.online {
    background: #4caf50;
}

.status-indicator.warning {
    background: #ff9800;
}

.status-indicator.offline {
    background: #f44336;
}

.status-text {
    color: white;
    font-size: 12px;
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Quick Stats */
.quick-stats {
    display: flex;
    gap: 20px;
    margin-right: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 100px;
}

.stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2px;
}

.stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #ffd600;
}

/* Admin Actions */
.admin-actions .icon-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 5px;
}

.admin-actions .icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.alert-btn {
    background: rgba(229, 57, 53, 0.2) !important;
    border-color: #e53935 !important;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e53935;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* User Menu Enhancement */
.user-menu .user-info {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.user-info strong {
    display: block;
    color: #333;
    font-size: 14px;
}

.user-info small {
    color: #666;
    font-size: 11px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

/* Admin Content */
.admin-content {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.admin-main-content {
    padding: 0;
    background: transparent;
}

.admin-page-content {
    padding: 20px;
    background: white;
    margin: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-height: calc(100vh - 200px);
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.card-icon {
    font-size: 24px;
    padding: 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #158173, #1976d2);
    color: white;
}

.card-value {
    font-size: 28px;
    font-weight: bold;
    color: #158173;
    margin: 10px 0;
}

.card-change {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.card-change.positive {
    background: #e8f5e8;
    color: #2e7d32;
}

.card-change.negative {
    background: #ffebee;
    color: #c62828;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-table th {
    background: linear-gradient(90deg, #158173, #1976d2);
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e6ed;
    font-size: 13px;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-pending {
    background: #fff3e0;
    color: #f57c00;
}

.status-suspended {
    background: #ffebee;
    color: #c62828;
}

.status-completed {
    background: #e3f2fd;
    color: #1976d2;
}

/* Admin Buttons */
.admin-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.admin-btn.primary {
    background: linear-gradient(135deg, #158173, #1976d2);
    color: white;
}

.admin-btn.secondary {
    background: #6c757d;
    color: white;
}

.admin-btn.success {
    background: #28a745;
    color: white;
}

.admin-btn.danger {
    background: #dc3545;
    color: white;
}

.admin-btn.warning {
    background: #ffc107;
    color: #212529;
}

.admin-btn.small {
    padding: 6px 12px;
    font-size: 12px;
}

.admin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Charts Container */
.charts-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* Admin Footer */
.admin-footer {
    background: linear-gradient(90deg, #263238, #37474f);
    color: white;
    padding: 20px;
    margin-top: auto;
}

.admin-footer .footer-content {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 30px;
    align-items: center;
}

.admin-info p {
    margin: 5px 0;
    font-size: 12px;
}

.status-online {
    color: #4caf50;
    font-weight: 500;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.info-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.info-value {
    font-weight: 600;
    color: #ffd600;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .admin-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .quick-stats {
        display: none;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-page-content {
        margin: 10px;
        padding: 15px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .system-status {
        display: none;
    }
    
    .admin-footer .footer-content {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #158173;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #c62828;
    margin: 20px 0;
}

.success-message {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #2e7d32;
    margin: 20px 0;
}

/* Form Styles */
.admin-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #158173;
    box-shadow: 0 0 0 2px rgba(21, 129, 115, 0.2);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background: #f8f9fa;
}

.pagination button.active {
    background: #158173;
    color: white;
    border-color: #158173;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* View Switcher Modal Styles */
.switch-view-content {
    max-width: 500px;
}

.preview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.preview-card h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.preview-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.feature-list li {
    padding: 5px 0;
    opacity: 0.9;
}

.switch-options {
    margin-top: 20px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    margin: 0;
}

.info-box {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 6px;
    padding: 12px;
    margin-top: 15px;
    font-size: 14px;
    color: #1565c0;
}

.info-box strong {
    color: #0d47a1;
}

/* Admin Site Visit Earnings Styles */
.admin-earnings-container {
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #158173 0%, #3949ab 100%);
    padding: 32px;
    border-radius: 16px;
    color: white;
}

.page-title-section {
    flex: 1;
}

.admin-page-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
}

.admin-page-description {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

.admin-quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
}

.admin-btn.primary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.admin-btn.primary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.admin-btn.success {
    background: rgba(76, 175, 80, 0.15);
    color: white;
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.admin-btn.success:hover {
    background: rgba(76, 175, 80, 0.25);
    transform: translateY(-2px);
}

.admin-btn.secondary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
}

.admin-btn.secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.admin-btn.info {
    background: rgba(57, 73, 171, 0.15);
    color: white;
    border: 2px solid rgba(57, 73, 171, 0.3);
}

.admin-btn.info:hover {
    background: rgba(57, 73, 171, 0.25);
    transform: translateY(-2px);
}

/* Admin Earnings Overview */
.admin-earnings-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.admin-overview-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.admin-overview-card.primary {
    border-left: 5px solid #158173;
}

.admin-overview-card.success {
    border-left: 5px solid #4caf50;
}

.admin-overview-card.warning {
    border-left: 5px solid #ffd600;
}

.admin-overview-card.info {
    border-left: 5px solid #3949ab;
}

.admin-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-overview-card.primary .admin-card-icon {
    background: linear-gradient(135deg, rgba(21, 129, 115, 0.1) 0%, rgba(21, 129, 115, 0.2) 100%);
    color: #158173;
}

.admin-overview-card.success .admin-card-icon {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.2) 100%);
    color: #4caf50;
}

.admin-overview-card.warning .admin-card-icon {
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.1) 0%, rgba(255, 214, 0, 0.2) 100%);
    color: #ffd600;
}

.admin-overview-card.info .admin-card-icon {
    background: linear-gradient(135deg, rgba(57, 73, 171, 0.1) 0%, rgba(57, 73, 171, 0.2) 100%);
    color: #3949ab;
}

.admin-card-info {
    flex: 1;
}

.admin-card-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.admin-card-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.live-indicator {
    font-size: 0.8rem;
    padding: 2px 6px;
    background: rgba(229, 57, 53, 0.1);
    color: #e53935;
    border-radius: 4px;
    font-weight: 600;
}

.earning-rate {
    font-size: 0.8rem;
    color: #4caf50;
    font-weight: 600;
}

.withdrawal-status {
    font-size: 0.8rem;
    color: #4caf50;
    font-weight: 600;
}

.account-type {
    font-size: 0.8rem;
    color: #3949ab;
    font-weight: 600;
}

.admin-card-content {
    margin-top: 8px;
}

.admin-card-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1;
}

.admin-card-change {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-card-change.positive {
    color: #4caf50;
}

.admin-card-change.negative {
    color: #e53935;
}

.admin-card-change.neutral {
    color: #666;
}

/* Admin Analytics Grid */
.admin-analytics-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.admin-analytics-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.admin-card-header-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.admin-card-header-full h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.chart-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.time-range-selector {
    display: flex;
    background: #f5f5f5;
    padding: 4px;
    border-radius: 8px;
    gap: 4px;
}

.time-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #666;
    font-size: 0.9rem;
}

.time-btn.active,
.time-btn:hover {
    background: #158173;
    color: white;
}

.refresh-chart-btn {
    padding: 8px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-chart-btn:hover {
    background: #e0e0e0;
}

.chart-container-admin {
    position: relative;
    height: 350px;
}

/* Geographic Analytics */
.geo-controls {
    display: flex;
    gap: 12px;
}

.geo-filter {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.country-revenue-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.country-revenue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.country-revenue-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.country-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flag {
    font-size: 1.5rem;
}

.country-name {
    font-weight: 600;
    color: #333;
}

.revenue-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.visits {
    font-size: 0.85rem;
    color: #666;
}

.revenue {
    font-weight: 700;
    color: #158173;
    font-size: 1.1rem;
}

.percentage {
    font-size: 0.85rem;
    color: #3949ab;
    font-weight: 600;
}

/* Advanced Table Styles */
.admin-visit-management,
.admin-withdrawal-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.admin-section-header h2 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.admin-section-actions {
    display: flex;
    gap: 12px;
}

.admin-table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    gap: 16px;
    flex-wrap: wrap;
}

.table-search {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.admin-search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.table-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-filter-select,
.admin-filter-date {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 120px;
}

.admin-visits-table,
.admin-withdrawals-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-visits-table th,
.admin-visits-table td,
.admin-withdrawals-table th,
.admin-withdrawals-table td {
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-visits-table th,
.admin-withdrawals-table th {
    background: #f8f9fa;
    color: #555;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-visits-table tbody tr:hover,
.admin-withdrawals-table tbody tr:hover {
    background: #f0f8ff;
}

/* Responsive Design for Admin Earnings */
@media (max-width: 1200px) {
    .admin-analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-earnings-container {
        padding: 16px;
    }
    
    .admin-page-header {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }
    
    .admin-page-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .admin-quick-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .admin-btn {
        flex: 1;
        justify-content: center;
    }
    
    .admin-earnings-overview {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Admin Site Earnings Withdrawal Management */
.pending-approval {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
}

.admin-action-btn.approve {
    background-color: #28a745;
    color: white;
}

.admin-action-btn.approve:hover {
    background-color: #218838;
}

.admin-action-btn.reject {
    background-color: #dc3545;
    color: white;
}

.admin-action-btn.reject:hover {
    background-color: #c82333;
}

.withdrawal-details .detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.withdrawal-details .detail-row label {
    font-weight: 600;
    color: #333;
    min-width: 120px;
}

.withdrawal-details .amount {
    font-weight: bold;
    color: #158173;
    font-size: 1.1em;
}

.payment-details {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.payment-details h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1em;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 6px 0;
}

.summary-row label {
    font-weight: 600;
    color: #333;
    min-width: 100px;
}

.confirmation-warning {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
}

.confirmation-warning strong {
    color: #856404;
}

.confirmation-warning p {
    margin: 8px 0 0 0;
    color: #856404;
    font-size: 0.9em;
}

.btn-success {
    background-color: #28a745;
    color: white;
    border: 1px solid #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.status-badge.pending {
    background-color: #ffc107;
    color: #212529;
}

.status-badge.completed {
    background-color: #28a745;
    color: white;
}

.status-badge.processing {
    background-color: #17a2b8;
    color: white;
}

.status-badge.failed {
    background-color: #dc3545;
    color: white;
}

/* MB to Money Conversion Styles */
.admin-overview-card.conversion {
    border: 2px solid #17a2b8;
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
}

.admin-overview-card.conversion .admin-card-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    color: white;
}

.admin-overview-card.conversion .admin-card-header .admin-card-info .admin-card-label {
    color: #17a2b8;
    font-weight: 700;
}

.admin-overview-card.conversion .conversion-rate {
    background: #17a2b8;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.admin-card-actions {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.conversion-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.conversion-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.3);
}

.conversion-btn:active {
    transform: translateY(0);
}

.conversion-preview {
    text-align: center;
    font-weight: 600;
    color: #28a745;
    font-size: 14px;
    padding: 8px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

/* MB Conversion Modal */
.mb-conversion-modal {
    max-width: 500px;
    width: 90%;
}

.conversion-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.conversion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.conversion-item.total {
    border-top: 2px solid #dee2e6;
    margin-top: 10px;
    padding-top: 15px;
}

.conversion-label {
    font-weight: 600;
    color: #495057;
}

.conversion-value {
    font-weight: 700;
    color: #212529;
}

.conversion-value.earnings {
    color: #28a745;
    font-size: 1.2em;
}

.conversion-divider {
    height: 1px;
    background: #dee2e6;
    margin: 10px 0;
}

.conversion-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    margin-bottom: 20px;
}

.conversion-warning svg {
    color: #856404;
    flex-shrink: 0;
    margin-top: 2px;
}

.conversion-warning p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

/* Conversion Success Animation */
.conversion-success-float {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    animation: floatSuccess 3s ease-out forwards;
}

.success-content {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

@keyframes floatSuccess {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    40% {
        transform: translate(-50%, -50%) scale(1);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -60%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -80%) scale(0.9);
    }
}

/* Responsive Design for MB Conversion */
@media (max-width: 768px) {
    .mb-conversion-modal {
        margin: 20px;
        max-width: none;
        width: calc(100% - 40px);
    }
    
    .conversion-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .conversion-value {
        align-self: flex-end;
    }
}

/* Bulk Actions Modal Styles */
.bulk-actions-modal {
    max-width: 800px;
    width: 90%;
}

.bulk-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.bulk-action-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bulk-action-card:hover {
    border-color: #158173;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(21, 129, 115, 0.15);
}

.bulk-action-card.danger {
    border-color: #dc3545;
}

.bulk-action-card.danger:hover {
    border-color: #c82333;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.15);
}

.bulk-action-card .action-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #158173 0%, #20c997 100%);
    border-radius: 50%;
    color: white;
}

.bulk-action-card.danger .action-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.bulk-action-card h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

.bulk-action-card p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
}

/* Advanced Filters Modal Styles */
.advanced-filters-modal {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.advanced-filters-form {
    padding: 0;
}

.filter-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #158173;
}

.filter-section h4 {
    margin: 0 0 15px 0;
    color: #158173;
    font-weight: 600;
    font-size: 16px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group.full-width {
    grid-column: 1 / -1;
}

.filter-group label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #158173;
    box-shadow: 0 0 0 2px rgba(21, 129, 115, 0.2);
}

.filter-group span {
    align-self: center;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    margin: 0 5px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Earnings Adjustment Modal Styles */
.earnings-adjustment-modal {
    max-width: 600px;
    width: 90%;
}

.adjustment-options {
    margin-bottom: 25px;
}

.adjustment-method {
    margin-bottom: 20px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.adjustment-method:has(input:checked) {
    border-color: #158173;
    background: rgba(21, 129, 115, 0.05);
}

.adjustment-method label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    margin-bottom: 10px;
}

.adjustment-method input[type="radio"] {
    width: 18px;
    height: 18px;
}

.adjustment-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.adjustment-input input,
.adjustment-input select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
}

.adjustment-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #158173;
}

.adjustment-preview h4 {
    margin: 0 0 15px 0;
    color: #158173;
    font-weight: 600;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-item.total {
    border-top: 2px solid #dee2e6;
    margin-top: 10px;
    padding-top: 15px;
    font-weight: 600;
}

.preview-item span:first-child {
    color: #495057;
}

.preview-item span:last-child {
    font-weight: 600;
    color: #212529;
}

.preview-item span.positive {
    color: #28a745;
}

.preview-item span.negative {
    color: #dc3545;
}

/* Confirm Modal Styles */
.confirm-modal {
    max-width: 500px;
    width: 90%;
}

.warning-content {
    text-align: center;
    padding: 20px;
}

.warning-icon {
    color: #ffc107;
    margin-bottom: 20px;
}

.warning-content h4 {
    margin: 0 0 15px 0;
    color: #dc3545;
    font-weight: 600;
}

.warning-content p {
    margin: 0 0 20px 0;
    color: #6c757d;
    line-height: 1.5;
}

.removal-impact {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.impact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.impact-item span:first-child {
    color: #856404;
    font-weight: 500;
}

.impact-item span:last-child {
    color: #dc3545;
    font-weight: 600;
}

/* Filter Summary Styles */
.filter-summary-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-results {
    font-weight: 600;
    color: #1565c0;
}

.clear-filters-btn {
    background: #1976d2;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.clear-filters-btn:hover {
    background: #1565c0;
}

/* Responsive Design for New Modals */
@media (max-width: 768px) {
    .bulk-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        justify-content: center;
    }
    
    .adjustment-input {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-summary-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Visit Details Modal Styles */
.visit-details-modal {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.visit-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.detail-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #158173;
}

.detail-section.full-width {
    grid-column: 1 / -1;
}

.detail-section h4 {
    margin: 0 0 15px 0;
    color: #158173;
    font-weight: 600;
    font-size: 16px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
}

.detail-item span {
    color: #212529;
    text-align: right;
    flex: 1;
}

.detail-item .earnings-highlight {
    color: #28a745;
    font-weight: 700;
    font-size: 1.1em;
}

.detail-item .conversion-highlight {
    color: #17a2b8;
    font-weight: 700;
}

.detail-item .user-agent {
    font-family: monospace;
    font-size: 12px;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    word-break: break-all;
}

/* Activity Timeline Styles */
.activity-timeline {
    position: relative;
    padding-left: 30px;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -38px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 1;
}

.timeline-marker.start {
    background: #28a745;
}

.timeline-marker.activity {
    background: #17a2b8;
}

.timeline-marker.end {
    background: #158173;
}

.timeline-content {
    background: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-content strong {
    display: block;
    color: #495057;
    margin-bottom: 4px;
}

.timeline-content span {
    color: #6c757d;
    font-size: 14px;
}

/* Edit Visit Modal Styles */
.edit-visit-modal {
    max-width: 700px;
    width: 90%;
}

.edit-visit-form {
    padding: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #158173;
    box-shadow: 0 0 0 2px rgba(21, 129, 115, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Visit Table Enhancement Styles */
.admin-visits-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-visits-table th {
    background: linear-gradient(135deg, #158173 0%, #20c997 100%);
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.admin-visits-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.admin-visits-table tr:hover {
    background: #f8f9fa;
}

.timestamp-info .date {
    font-weight: 600;
    color: #495057;
}

.timestamp-info .time {
    font-size: 12px;
    color: #6c757d;
}

.ip-info .ip-address {
    font-family: monospace;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.ip-meta {
    margin-top: 4px;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-info .flag {
    font-size: 16px;
}

.device-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.device-badge.desktop {
    background: #e3f2fd;
    color: #1565c0;
}

.device-badge.mobile {
    background: #f3e5f5;
    color: #7b1fa2;
}

.device-badge.tablet {
    background: #fff3e0;
    color: #ef6c00;
}

.page-views-info .count {
    font-weight: 700;
    color: #495057;
}

.page-views-info .label {
    font-size: 12px;
    color: #6c757d;
}

.duration-info .duration {
    font-weight: 600;
    color: #495057;
}

.duration-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.duration-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    transition: width 0.3s ease;
}

.earnings-info .earnings-amount {
    font-weight: 700;
    color: #28a745;
    font-size: 16px;
}

.earnings-info .mb-info {
    font-size: 11px;
    color: #6c757d;
    margin-top: 2px;
}

.earnings-info .activity-info {
    font-size: 11px;
    color: #158173;
    margin-top: 2px;
}

.earnings-info .conversion-bonus {
    font-size: 11px;
    color: #17a2b8;
    font-weight: 600;
    margin-top: 2px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-indicator.completed {
    background: #d4edda;
    color: #155724;
}

.status-indicator.active {
    background: #cce5ff;
    color: #0056b3;
}

.status-indicator.suspended {
    background: #f8d7da;
    color: #721c24;
}

.status-indicator.flagged {
    background: #fff3cd;
    color: #856404;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.admin-action-btn {
    padding: 6px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-action-btn.view {
    background: #e3f2fd;
    color: #1565c0;
}

.admin-action-btn.edit {
    background: #fff3e0;
    color: #ef6c00;
}

.admin-action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Responsive Design for Visit Table */
@media (max-width: 1200px) {
    .admin-visits-table {
        font-size: 13px;
    }
    
    .admin-visits-table th,
    .admin-visits-table td {
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .visit-details-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .detail-item span {
        text-align: left;
    }
    
    .admin-visits-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Enhanced button states and animations */
.admin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.admin-btn .spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced notification styles */
.admin-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

.admin-notification.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.admin-notification.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.admin-notification.warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.admin-notification.info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced card flash effect */
.admin-stats-card {
    transition: all 0.3s ease;
}

.admin-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Main Account Display Styles */
.main-account-display {
    margin: 30px 0;
    padding: 0 20px;
}

.main-account-card {
    background: linear-gradient(135deg, #158173 0%, #1976d2 100%);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 15px 35px rgba(21, 129, 115, 0.2);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd600, #ff8f00, #ffd600);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.main-account-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-account-icon {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 15px;
    color: #ffd600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-account-info {
    flex: 1;
    color: white;
}

.main-account-title {
    margin: 0 0 8px 0;
    font-size: 1.8em;
    font-weight: 600;
    color: #ffd600;
}

.main-account-subtitle {
    margin: 0 0 15px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1em;
}

.account-status {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(76, 175, 80, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    color: #4CAF50;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.last-update {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
}

.main-account-balance {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px;
    gap: 30px;
}

.balance-section {
    flex: 1;
}

.balance-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: 500;
}

.balance-amount {
    font-size: 3.2em;
    font-weight: 700;
    color: #ffd600;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(255, 214, 0, 0.3);
    line-height: 1;
}

.balance-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border-left: 3px solid #ffd600;
}

.breakdown-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95em;
}

.breakdown-value {
    color: white;
    font-weight: 600;
    font-size: 1.1em;
}

.quick-actions-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 200px;
}

.main-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.main-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.main-action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.main-action-btn.primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.main-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.main-action-btn.secondary {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.main-action-btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.main-action-btn.info {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.main-action-btn.info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

/* Responsive Design for Main Account */
@media (max-width: 1024px) {
    .main-account-balance {
        flex-direction: column;
        gap: 20px;
    }
    
    .quick-actions-main {
        min-width: auto;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .main-action-btn {
        flex: 1;
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .main-account-display {
        padding: 0 10px;
    }
    
    .main-account-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .balance-amount {
        font-size: 2.5em;
    }
    
    .quick-actions-main {
        flex-direction: column;
    }
    
    .account-status {
        justify-content: center;
    }
}

/* ==================== SITE EARNINGS ACCOUNT DETAILS ==================== */
.site-earnings-account-details {
    background: white;
    border-radius: 12px;
    padding: 32px;
    margin: 32px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.account-details-container {
    margin-top: 24px;
}

.account-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.detail-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #158173;
}

.detail-section.full-width {
    grid-column: 1 / -1;
}

.detail-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.detail-section-header h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.detail-section-header svg {
    color: #158173;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    min-width: 140px;
}

.detail-item span {
    font-size: 14px;
    color: #1a1a1a;
    text-align: right;
    flex: 1;
}

/* Account Detail Badges and Status Indicators */
.type-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-active {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.balance {
    font-weight: 700;
    font-size: 16px;
}

.balance.positive {
    color: #2e7d32;
}

.balance.available {
    color: #158173;
}

.balance.pending {
    color: #f57c00;
}

.balance.reserved {
    color: #757575;
}

.balance.total {
    color: #1976d2;
}

.balance.withdrawn {
    color: #d32f2f;
}

.earnings {
    font-weight: 600;
    font-size: 15px;
}

.earnings.today {
    color: #2e7d32;
}

.earnings.week {
    color: #158173;
}

.earnings.month {
    color: #1976d2;
}

.earnings.average {
    color: #7b1fa2;
}

.earnings.rate {
    color: #f57c00;
}

.earnings.conversion {
    color: #d32f2f;
}

.security-level.high {
    color: #2e7d32;
    font-weight: 600;
}

.auth-status.enabled {
    color: #2e7d32;
    font-weight: 600;
}

.auto-withdrawal.disabled {
    color: #757575;
    font-weight: 600;
}

.backup-status.active {
    color: #1976d2;
    font-weight: 600;
}

/* Notes Section */
.notes-content {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    line-height: 1.6;
}

.notes-content p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #495057;
}

.notes-content p:last-child {
    margin-bottom: 0;
}

.notes-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Account Actions Section */
.account-actions-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #e9ecef;
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.account-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.account-action-btn.primary {
    background: #158173;
    color: white;
}

.account-action-btn.secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.account-action-btn.info {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.account-action-btn.success {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.account-action-btn.warning {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffcc02;
}

.account-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.account-action-btn.primary:hover {
    background: #126a5e;
}

.account-action-btn.secondary:hover {
    background: #e9ecef;
}

.account-action-btn.info:hover {
    background: #bbdefb;
}

.account-action-btn.success:hover {
    background: #c8e6c9;
}

.account-action-btn.warning:hover {
    background: #ffcc02;
}

/* ===== ENHANCED RESPONSIVE DESIGN FOR SITE EARNINGS ===== */

/* Base Container Responsive */
.admin-earnings-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0;
}

/* Page Header Responsive */
.admin-page-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-title-section {
    flex: 1;
}

.admin-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

/* Main Account Display Responsive */
.main-account-display {
    width: 100%;
    margin-bottom: 24px;
}

.main-account-card {
    background: linear-gradient(135deg, #158173 0%, #0d6b6e 100%);
    border-radius: 16px;
    padding: 32px;
    color: white;
    box-shadow: 0 8px 32px rgba(21, 129, 115, 0.3);
    position: relative;
    overflow: hidden;
}

.main-account-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
}

.main-account-icon {
    flex-shrink: 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.main-account-info {
    flex: 1;
    min-width: 0;
}

.main-account-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
}

.main-account-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.account-status {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.status-badge.active {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.last-update {
    font-size: 14px;
    opacity: 0.8;
}

.main-account-balance {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}

.balance-section {
    min-width: 0;
}

.balance-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1;
}

.balance-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.breakdown-label {
    font-size: 14px;
    opacity: 0.9;
}

.breakdown-value {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.quick-actions-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 200px;
}

.main-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
    white-space: nowrap;
}

.main-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Accounts Table Section Responsive */
.site-earnings-accounts-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

.accounts-section-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f3f4;
}

.accounts-section-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #0d6b6e;
    font-size: 24px;
    font-weight: 700;
}

.accounts-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.accounts-table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    background: white;
}

.site-earnings-accounts-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.site-earnings-accounts-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    font-weight: 600;
    padding: 20px 16px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-earnings-accounts-table td {
    padding: 20px 16px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
}

.site-earnings-accounts-table tr:hover {
    background: #f8f9ff;
}

.main-system-account-row {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8e9 100%);
    border-left: 4px solid #158173;
}

.main-system-account-row:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #dcedc8 100%);
}

/* Account Table Cell Styles */
.account-id-cell {
    min-width: 120px;
}

.account-id-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-id-number {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
}

.account-type-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
}

.account-type-badge.system {
    background: #e3f2fd;
    color: #1976d2;
}

.account-type-badge.user {
    background: #f3e5f5;
    color: #7b1fa2;
}

.user-cell {
    min-width: 200px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
}

.user-email {
    font-size: 13px;
    color: #666;
}

.user-role {
    font-size: 13px;
    color: #999;
}

.type-cell {
    min-width: 100px;
}

.account-type-badge.main {
    background: #f1f8e9;
    color: #4caf50;
}

.account-type-badge.standard {
    background: #e8f5e8;
    color: #2e7d32;
}

.account-type-badge.pro {
    background: #fff3e0;
    color: #f57c00;
}

.balance-cell {
    min-width: 120px;
    text-align: right;
}

.balance-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.balance-amount {
    font-weight: 700;
    font-size: 18px;
}

.balance-amount.main-balance {
    color: #158173;
}

.balance-amount.positive {
    color: #2e7d32;
}

.status-cell {
    min-width: 100px;
}

.status-badge.system {
    background: #f5f5f5;
    color: #757575;
}

.status-badge.active {
    background: #e8f5e8;
    color: #2e7d32;
}

.actions-cell {
    min-width: 180px;
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-group {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.action-btn.edit {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.action-btn.delete {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.special-actions {
    margin-top: 8px;
}

.site-visits-info {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
}

.visits-label {
    color: #666;
    font-weight: 500;
}

.visits-amount {
    color: #158173;
    font-weight: 700;
}

.special-action-btn {
    padding: 8px 12px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8e9 100%);
    border: 1px solid #158173;
    border-radius: 8px;
    color: #0d6b6e;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.special-action-btn:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #dcedc8 100%);
    transform: translateY(-1px);
}

/* Admin Overview Cards Responsive */
.admin-earnings-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.admin-overview-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-overview-card.primary {
    border-left-color: #2196f3;
}

.admin-overview-card.success {
    border-left-color: #4caf50;
}

.admin-overview-card.warning {
    border-left-color: #ff9800;
}

.admin-overview-card.info {
    border-left-color: #158173;
}

.admin-overview-card.conversion {
    border-left-color: #9c27b0;
}

.admin-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.admin-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.admin-card-icon {
    padding: 12px;
    border-radius: 12px;
    background: #f8f9fa;
    color: #495057;
}

.admin-overview-card.primary .admin-card-icon {
    background: #e3f2fd;
    color: #1976d2;
}

.admin-overview-card.success .admin-card-icon {
    background: #e8f5e8;
    color: #2e7d32;
}

.admin-overview-card.warning .admin-card-icon {
    background: #fff3e0;
    color: #f57c00;
}

.admin-overview-card.info .admin-card-icon {
    background: #e0f2f1;
    color: #00695c;
}

.admin-overview-card.conversion .admin-card-icon {
    background: #f3e5f5;
    color: #7b1fa2;
}

.admin-card-info {
    flex: 1;
    min-width: 0;
}

.admin-card-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
    display: block;
}

.admin-card-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.live-indicator {
    font-size: 12px;
    font-weight: 600;
}

.earning-rate, .withdrawal-status, .account-type, .conversion-rate {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.admin-card-content {
    text-align: center;
}

.admin-card-value {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1;
}

.admin-card-change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

.admin-card-change.positive {
    color: #2e7d32;
}

.admin-card-change.neutral {
    color: #666;
}

.admin-card-actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.conversion-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #7b1fa2 0%, #9c27b0 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.conversion-btn:hover {
    background: linear-gradient(135deg, #6a1b9a 0%, #8e24aa 100%);
    transform: translateY(-2px);
}

.conversion-preview {
    font-size: 12px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

/* Responsive Design for Account Details */
@media (max-width: 768px) {
    .account-details-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .detail-item span {
        text-align: left;
    }
    
    .action-buttons-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    .admin-earnings-container {
        gap: 16px;
    }
    
    .admin-page-header {
        padding: 20px;
        gap: 16px;
    }
    
    .admin-quick-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .admin-btn {
        justify-content: center;
        text-align: center;
    }
    
    .main-account-card {
        padding: 24px;
    }
    
    .main-account-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .main-account-title {
        font-size: 24px;
    }
    
    .main-account-balance {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .balance-amount {
        font-size: 36px;
    }
    
    .breakdown-item {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .quick-actions-main {
        width: 100%;
        min-width: unset;
    }
    
    .site-earnings-accounts-section {
        padding: 20px;
    }
    
    .accounts-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .accounts-section-header h2 {
        font-size: 20px;
    }
    
    .accounts-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .accounts-actions .admin-btn {
        flex: 1;
    }
    
    .admin-earnings-overview {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .admin-overview-card {
        padding: 20px;
    }
    
    .admin-card-header {
        gap: 12px;
    }
    
    .admin-card-value {
        font-size: 28px;
    }
    
    .admin-card-change {
        font-size: 13px;
        flex-wrap: wrap;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .admin-earnings-container {
        gap: 12px;
    }
    
    .admin-page-header {
        padding: 16px;
    }
    
    .main-account-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .main-account-title {
        font-size: 20px;
    }
    
    .balance-amount {
        font-size: 28px;
    }
    
    .site-earnings-accounts-section {
        padding: 16px;
    }
    
    .accounts-table-container {
        border-radius: 8px;
    }
    
    .site-earnings-accounts-table {
        min-width: 800px;
    }
    
    .admin-overview-card {
        padding: 16px;
    }
    
    .admin-card-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .admin-card-info {
        text-align: center;
    }
    
    .admin-card-value {
        font-size: 24px;
    }
}

/* Enhanced Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .admin-earnings-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-account-balance {
        grid-template-columns: 1fr auto;
        gap: 24px;
    }
    
    .quick-actions-main {
        min-width: 180px;
    }
    
    .accounts-section-header {
        gap: 16px;
    }
    
    .admin-quick-actions {
        gap: 8px;
    }
}

/* Large Screen Enhancements */
@media (min-width: 1200px) {
    .admin-earnings-overview {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .main-account-card {
        padding: 40px;
    }
    
    .main-account-title {
        font-size: 32px;
    }
    
    .balance-amount {
        font-size: 56px;
    }
    
    .site-earnings-accounts-section {
        padding: 40px;
    }
    
    .admin-overview-card {
        padding: 28px;
    }
    
    .admin-card-value {
        font-size: 36px;
    }
}

/* ===== REAL-TIME SYNC AND RESPONSIVE ENHANCEMENTS ===== */

/* Updated Flash Animation */
.updated-flash {
    animation: updateFlash 1s ease-out;
}

@keyframes updateFlash {
    0% { background-color: transparent; }
    50% { background-color: rgba(76, 175, 80, 0.2); }
    100% { background-color: transparent; }
}

/* Section Updated Animation */
.section-updated {
    animation: sectionUpdate 2s ease-out;
    border: 2px solid rgba(21, 129, 115, 0.3);
    border-radius: 12px;
}

@keyframes sectionUpdate {
    0% { 
        box-shadow: 0 0 0 0 rgba(21, 129, 115, 0.7);
        border-color: rgba(21, 129, 115, 0.7);
    }
    70% { 
        box-shadow: 0 0 0 10px rgba(21, 129, 115, 0);
        border-color: rgba(21, 129, 115, 0.3);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(21, 129, 115, 0);
        border-color: transparent;
    }
}

/* Sync Notification */
.sync-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.sync-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.sync-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
}

.sync-content svg {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mobile Scroll Indicators */
.mobile-scroll {
    position: relative;
}

.scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
    animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Touch Active States */
.touch-active {
    transform: scale(0.98);
    background-color: rgba(0,0,0,0.1) !important;
}

/* Mobile Stack Layout */
.mobile-stack {
    flex-direction: column !important;
    align-items: stretch !important;
}

.mobile-stack .admin-btn {
    width: 100% !important;
    margin: 0 !important;
}

/* Compact Mobile Cards */
.compact-mobile {
    padding: 16px !important;
}

.compact-mobile .admin-card-header {
    flex-direction: column !important;
    text-align: center !important;
    gap: 8px !important;
}

.compact-mobile .admin-card-value {
    font-size: 24px !important;
}

.compact-mobile .admin-card-change {
    font-size: 12px !important;
    justify-content: center !important;
}

/* Responsive Table Enhancements */
@media (max-width: 768px) {
    .accounts-table-container {
        position: relative;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #158173 #f1f3f4;
    }
    
    .accounts-table-container::-webkit-scrollbar {
        height: 8px;
    }
    
    .accounts-table-container::-webkit-scrollbar-track {
        background: #f1f3f4;
        border-radius: 4px;
    }
    
    .accounts-table-container::-webkit-scrollbar-thumb {
        background: #158173;
        border-radius: 4px;
    }
    
    .site-earnings-accounts-table {
        min-width: 800px;
    }
    
    .site-earnings-accounts-table th,
    .site-earnings-accounts-table td {
        padding: 12px 8px;
        white-space: nowrap;
    }
    
    .account-id-info,
    .user-info,
    .balance-info {
        min-width: max-content;
    }
    
    .action-group {
        flex-direction: column;
        gap: 4px;
    }
    
    .action-btn {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* Enhanced Quick Actions Responsive */
@media (max-width: 768px) {
    .admin-quick-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .admin-btn {
        padding: 12px 8px;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .admin-btn svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .admin-quick-actions {
        grid-template-columns: 1fr;
    }
    
    .admin-btn {
        justify-content: center;
        text-align: center;
    }
}

/* Enhanced Main Account Card Responsive */
@media (max-width: 768px) {
    .main-account-header {
        text-align: center;
    }
    
    .main-account-icon {
        align-self: center;
    }
    
    .account-status {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .balance-breakdown {
        gap: 12px;
    }
    
    .breakdown-item {
        padding: 12px 16px;
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .breakdown-label {
        font-size: 12px;
    }
    
    .breakdown-value {
        font-size: 18px;
        font-weight: 700;
    }
}

/* Interactive Visual Feedback */
.admin-overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.main-action-btn:active,
.admin-btn:active,
.action-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Loading States */
.loading-state {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading-state::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #158173;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Real-time Data Indicators */
.live-data-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.live-data-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Enhanced Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Keyboard Navigation */
.admin-btn:focus,
.action-btn:focus,
.main-action-btn:focus {
    outline: 3px solid rgba(21, 129, 115, 0.5);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .admin-overview-card {
        border: 2px solid currentColor;
    }
    
    .main-account-card {
        border: 2px solid white;
    }
    
    .site-earnings-accounts-table {
        border: 2px solid currentColor;
    }
}

/* Print Styles */
@media print {
    .admin-quick-actions,
    .admin-card-actions,
    .action-group,
    .sync-notification {
        display: none !important;
    }
    
    .admin-earnings-container {
        color: black !important;
        background: white !important;
    }
    
    .main-account-card {
        background: white !important;
        color: black !important;
        border: 2px solid black !important;
    }
    
    .admin-overview-card {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* Enhanced View Switcher Modal Styles */
.switch-view-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.view-preview {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8eaf6 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e0e6ed;
}

.preview-card {
    text-align: center;
}

.preview-card h4 {
    color: #3949ab;
    margin: 0 0 12px 0;
    font-size: 1.3em;
}

.preview-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.feature-list li {
    color: #4CAF50;
    font-weight: 500;
    font-size: 0.9em;
    padding: 4px 0;
}

.switch-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.radio-group input[type="radio"] {
    margin: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #555;
}

.form-group small {
    color: #666;
    font-size: 0.85em;
    margin-top: 4px;
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

.info-box {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 16px;
    color: #1976d2;
}

.info-box strong {
    color: #1565c0;
}

/* View Switcher Button Enhancements */
.view-switcher {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9em;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.view-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.view-btn svg {
    width: 18px;
    height: 18px;
}

/* Admin Context Indicator */
.admin-context-indicator {
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Responsive View Switcher */
@media (max-width: 768px) {
    .switch-view-content {
        gap: 16px;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .view-switcher {
        padding: 2px;
    }
    
    .view-btn {
        padding: 8px 12px;
        font-size: 0.8em;
    }
    
    .view-btn span {
        display: none;
    }
    
    .view-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ===== LOGOUT BUTTON STYLES ===== */
.logout-btn {
    background: #e53935 !important;
    border: 2px solid #e53935 !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logout-btn:hover {
    background: #c62828 !important;
    border-color: #c62828 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.logout-btn:active {
    transform: translateY(0);
}

.logout-btn .logout-text {
    margin-left: 8px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.logout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.logout-btn:hover::before {
    left: 100%;
}

/* Admin logout button specific styles */
.admin-actions .logout-btn {
    margin-left: 10px;
    padding: 8px 16px;
    border-radius: 8px;
    min-width: 100px;
}

/* Responsive logout button */
@media (max-width: 768px) {
    .logout-btn .logout-text {
        display: none;
    }
    
    .admin-actions .logout-btn {
        min-width: auto;
        padding: 8px 12px;
    }
}

/* Logout confirmation modal enhancement */
.logout-modal .modal-content {
    border-top: 4px solid #e53935;
    max-width: 450px;
}

.logout-modal .modal-header {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: white;
}

.logout-modal .modal-header h3 {
    margin: 0;
    font-size: 1.3em;
}

.logout-modal .logout-confirmation {
    text-align: center;
    padding: 20px 0;
}

.logout-modal .logout-icon {
    margin-bottom: 20px;
}

.logout-modal .logout-confirmation p {
    margin-bottom: 15px;
    color: #333;
}

.logout-modal .logout-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: left;
    border-left: 4px solid #e53935;
}

.logout-modal .logout-details small {
    color: #666;
    line-height: 1.6;
}

.logout-modal .confirm-btn {
    background: #e53935;
    border-color: #e53935;
    color: white;
    font-weight: 500;
}

.logout-modal .confirm-btn:hover {
    background: #c62828;
    border-color: #c62828;
}

/* ===== ADMIN AUTHENTICATION REQUIRED MODAL STYLES ===== */
.admin-auth-required-modal .modal-content {
    border-top: 4px solid #e53935;
    max-width: 520px;
    cursor: default;
}

.admin-auth-required-modal .modal-header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
}

.admin-auth-required-modal .modal-header h3 {
    margin: 0;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-auth-required-modal .admin-auth-content {
    text-align: center;
    padding: 20px 0;
}

.admin-auth-required-modal .admin-auth-icon {
    margin-bottom: 20px;
}

.admin-auth-required-modal .admin-auth-content h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.admin-auth-required-modal .admin-auth-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.admin-auth-required-modal .admin-access-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
    border-left: 4px solid #1e3c72;
}

.admin-auth-required-modal .admin-access-info h5 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.admin-auth-required-modal .admin-access-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-auth-required-modal .admin-access-info li {
    padding: 5px 0;
    color: #555;
    font-size: 0.95em;
}

.admin-auth-required-modal .admin-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    text-align: left;
    color: #856404;
}

.admin-auth-required-modal .btn-primary {
    background: #1e3c72;
    border-color: #1e3c72;
    font-weight: 500;
    padding: 12px 24px;
}

.admin-auth-required-modal .btn-primary:hover {
    background: #2a5298;
    border-color: #2a5298;
}

/* ===== SITE EARNINGS ACCOUNTS TABLE STYLES ===== */
.site-earnings-accounts-section {
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.accounts-section-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #158173 0%, #3949ab 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accounts-section-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 600;
}

.accounts-section-header .section-icon {
    opacity: 0.9;
}

.accounts-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.accounts-table-container {
    padding: 0;
    overflow-x: auto;
}

.site-earnings-accounts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.site-earnings-accounts-table thead {
    background: #f8f9fa;
}

.site-earnings-accounts-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-earnings-accounts-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

/* Main System Account Row Styling */
.main-system-account-row {
    background: linear-gradient(90deg, rgba(21, 129, 115, 0.05) 0%, rgba(57, 73, 171, 0.05) 100%);
    border-left: 4px solid #158173;
    font-weight: 500;
}

.main-system-account-row td {
    border-bottom: 2px solid #158173;
}

.user-account-row:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* Account ID Cell */
.account-id-cell {
    min-width: 120px;
}

.account-id-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-id-number {
    font-family: 'Monaco', 'Consolas', monospace;
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
}

.account-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-type-badge.system {
    background: linear-gradient(90deg, #158173, #3949ab);
    color: white;
}

.account-type-badge.user {
    background: #e3f2fd;
    color: #1976d2;
}

.account-type-badge.main {
    color: #6c757d;
}

/* User Cell */
.user-cell {
    min-width: 180px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
}

.user-email {
    font-size: 12px;
    color: #6c757d;
}

.user-role {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

/* Type Cell */
.type-cell {
    min-width: 100px;
}

.account-type-badge.standard {
    background: #e8f5e8;
    color: #2e7d32;
}

.account-type-badge.pro {
    background: #fff3e0;
    color: #f57c00;
}

/* Balance Cell */
.balance-cell {
    min-width: 120px;
    text-align: right;
}

.balance-amount {
    font-family: 'Monaco', 'Consolas', monospace;
    font-weight: 700;
    font-size: 15px;
}

.balance-amount.positive {
    color: #2e7d32;
}

.balance-amount.main-balance {
    color: #158173;
    font-size: 16px;
    font-weight: 800;
}

/* Status Cell */
.status-cell {
    min-width: 80px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-badge.system {
    color: #6c757d;
}

/* Actions Cell */
.actions-cell {
    min-width: 200px;
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-group {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.action-btn.edit {
    background: #e3f2fd;
    color: #1976d2;
}

.action-btn.edit:hover {
    background: #bbdefb;
}

.action-btn.delete {
    background: #ffebee;
    color: #d32f2f;
}

.action-btn.delete:hover {
    background: #ffcdd2;
}

.action-text {
    color: #6c757d;
    font-style: italic;
    font-size: 12px;
}

/* Special Actions for Main System Account */
.special-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-visits-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.visits-label {
    color: #6c757d;
    font-weight: 500;
}

.visits-amount {
    color: #158173;
    font-weight: 700;
    font-family: 'Monaco', 'Consolas', monospace;
}

.special-action-btn {
    padding: 6px 12px;
    background: linear-gradient(90deg, rgba(21, 129, 115, 0.1), rgba(57, 73, 171, 0.1));
    border: 1px solid rgba(21, 129, 115, 0.3);
    border-radius: 6px;
    color: #158173;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.special-action-btn:hover {
    background: linear-gradient(90deg, rgba(21, 129, 115, 0.2), rgba(57, 73, 171, 0.2));
    border-color: #158173;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(21, 129, 115, 0.2);
}

/* Responsive Design for Accounts Table */
@media (max-width: 768px) {
    .accounts-section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .accounts-table-container {
        overflow-x: scroll;
    }
    
    .site-earnings-accounts-table {
        min-width: 700px;
    }
    
    .site-earnings-accounts-table th,
    .site-earnings-accounts-table td {
        padding: 0.75rem 0.5rem;
        font-size: 12px;
    }
    
    .account-actions {
        min-width: 150px;
    }
    
    .special-action-btn {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* Enhanced Interactive Modal Styles */
.earnings-impact-alert {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8e9 100%);
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.earnings-impact-alert svg {
    color: #2196f3;
    flex-shrink: 0;
}

.earnings-input-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.earnings-multiplier {
    display: flex;
    gap: 4px;
}

.multiplier-btn {
    background: #158173;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.multiplier-btn:hover {
    background: #0d6b6e;
}

.earnings-preview {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 4px;
}

.mb-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auto-convert-btn {
    background: #ff9800;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s ease;
}

.auto-convert-btn:hover {
    background: #f57c00;
}

.mb-conversion-preview {
    font-size: 12px;
    color: #158173;
    margin-top: 4px;
    padding: 4px 8px;
    background: rgba(21, 129, 115, 0.1);
    border-radius: 4px;
}

.mb-conversion-badge {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 8px;
}

.bonus-indicator {
    color: #4caf50;
    font-weight: 600;
    margin-top: 4px;
    animation: pulse 2s infinite;
}

.interactive-features {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.interactive-features h4 {
    margin: 0 0 12px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.action-btn.boost {
    background: #28a745;
}

.action-btn.boost:hover {
    background: #218838;
}

.action-btn.generate {
    background: #17a2b8;
}

.action-btn.generate:hover {
    background: #138496;
}

.action-btn.convert {
    background: #ffc107;
    color: #212529;
}

.action-btn.convert:hover {
    background: #e0a800;
}

.real-time-impact {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.real-time-impact h4 {
    margin: 0 0 12px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.impact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.impact-label {
    font-size: 13px;
    color: #666;
}

.impact-value {
    font-weight: 600;
    font-size: 14px;
}

.impact-value.positive {
    color: #28a745;
}

.impact-value.negative {
    color: #dc3545;
}

.impact-value.neutral {
    color: #6c757d;
}

/* MB Conversion Animation */
.mb-conversion-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    pointer-events: none;
    animation: mbConvertFloat 2s ease-out forwards;
}

.conversion-flow {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border: 2px solid #158173;
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 8px 32px rgba(21, 129, 115, 0.3);
}

.mb-amount, .usd-amount {
    font-size: 18px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
}

.mb-amount {
    background: #e3f2fd;
    color: #1976d2;
}

.usd-amount {
    background: #e8f5e8;
    color: #28a745;
}

.conversion-arrow {
    font-size: 24px;
    color: #158173;
    animation: pulse 1s infinite;
}

@keyframes mbConvertFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(-20px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9) translateY(-40px);
    }
}

/* Earnings Sparkle Effect */
.earnings-sparkle-effect {
    position: fixed;
    top: 20%;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
    animation: sparkleFloat 3s ease-out forwards;
}

.sparkle-content {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(40, 167, 69, 0.3);
    text-align: center;
}

.sparkle-icon {
    font-size: 24px;
    margin-bottom: 8px;
    animation: sparkle 1s infinite;
}

.sparkle-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.sparkle-subtext {
    font-size: 12px;
    opacity: 0.9;
}

@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-20px) scale(0.9);
    }
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

/* Interactive Delete Modal Styles */
.delete-visit-modal {
    max-width: 900px;
    width: 90vw;
}

.deletion-options {
    max-height: 70vh;
    overflow-y: auto;
}

.warning-section {
    text-align: center;
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
}

.warning-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.deletion-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.deletion-type-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.deletion-type-card:hover {
    border-color: #158173;
    box-shadow: 0 4px 12px rgba(21, 129, 115, 0.1);
}

.deletion-type-card.active {
    border-color: #158173;
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    box-shadow: 0 4px 16px rgba(21, 129, 115, 0.2);
}

.type-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.deletion-type-card h4 {
    margin: 0 0 8px 0;
    color: #333;
}

.deletion-type-card p {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.impact-preview, .mb-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    margin-bottom: 4px;
    font-size: 12px;
}

.impact-label, .mb-label {
    color: #666;
}

.impact-value.positive {
    color: #28a745;
    font-weight: 600;
}

.impact-value.negative {
    color: #dc3545;
    font-weight: 600;
}

.impact-value.neutral {
    color: #6c757d;
    font-weight: 600;
}

.mb-value {
    color: #17a2b8;
    font-weight: 600;
}

.visit-details-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.visit-details-summary h4 {
    margin: 0 0 12px 0;
    color: #333;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.total-impact-summary {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 16px;
}

.total-impact-summary h4 {
    margin: 0 0 12px 0;
    color: #333;
}

.impact-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 8px;
    background: white;
    border-radius: 6px;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
}

.stat-value.positive {
    color: #28a745;
}

.stat-value.negative {
    color: #dc3545;
}

/* Responsive Design for Interactive Modals */
@media (max-width: 768px) {
    .deletion-types {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .earnings-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mb-input-group {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Additional animations for spinning elements */
.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Continuous Earnings Increase Animations */
.earnings-updating {
    animation: earningsGlow 0.3s ease-in-out;
    transform: scale(1.02);
}

.balance-updating {
    animation: balanceGlow 0.3s ease-in-out;
    transform: scale(1.01);
}

@keyframes earningsGlow {
    0% {
        background-color: transparent;
        box-shadow: none;
    }
    50% {
        background-color: rgba(76, 175, 80, 0.2);
        box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
    }
    100% {
        background-color: transparent;
        box-shadow: none;
    }
}

@keyframes balanceGlow {
    0% {
        background-color: transparent;
        box-shadow: none;
    }
    50% {
        background-color: rgba(33, 150, 243, 0.2);
        box-shadow: 0 0 15px rgba(33, 150, 243, 0.5);
    }
    100% {
        background-color: transparent;
        box-shadow: none;
    }
}

@keyframes earningsFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-30px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
}

@keyframes sparkleEffect {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
        left: 50%;
        top: 50%;
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
        left: calc(50% + 20px);
        top: calc(50% - 15px);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) rotate(360deg);
        left: calc(50% + 40px);
        top: calc(50% - 30px);
    }
}

/* Action Notification Styles */
.earnings-action-notification,
.earnings-stop-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    max-width: 300px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.earnings-action-notification .notification-content,
.earnings-stop-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
}

.earnings-action-notification .notification-icon,
.earnings-stop-notification .notification-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.earnings-action-notification .notification-text,
.earnings-stop-notification .notification-text {
    flex: 1;
}

.earnings-action-notification .notification-title,
.earnings-stop-notification .notification-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.earnings-action-notification .notification-details,
.earnings-stop-notification .notification-details {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

/* Earnings Increase Indicator */
.earnings-increase-indicator {
    animation: earningsFloat 2s ease-out forwards;
}

/* Enhanced Button Effects for Accounts Table */
.accounts-table .admin-action-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accounts-table .admin-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.accounts-table .admin-action-btn.edit:hover {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.accounts-table .admin-action-btn.delete:hover {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

.accounts-table .admin-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.accounts-table .admin-action-btn:active::before {
    width: 100px;
    height: 100px;
}

/* Mobile responsive for earnings effects */
@media (max-width: 768px) {
    .earnings-action-notification,
    .earnings-stop-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        top: 60px;
    }
    
    .earnings-increase-indicator {
        right: 10px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .accounts-table .admin-action-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}
