/* ============================================
   ADMIN CSS VARIABLES
============================================ */

:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --primary: #6366f1;
    --primary-light: rgba(99, 102, 241, 0.1);
    --primary-dark: #4f46e5;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

.dark-mode {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border: #334155;
    --primary: #818cf8;
    --primary-light: rgba(129, 140, 248, 0.1);
    --primary-dark: #6366f1;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Main Content */
.admin-main-new {
    margin-left: 280px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    min-height: 100vh;
}

.admin-main-new.sidebar-collapsed {
    margin-left: 80px;
}

/* Page Header */
.admin-page-header {
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header-left h1 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.page-header-left h1 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.refresh-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Tab Content */
.admin-tab-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 1.5rem;
}

/* Stats Grid - 4 columns */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.stat-icon.purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.stat-icon.orange { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.stat-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Charts Row */
.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.chart-card, .activity-card {
    background: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.card-header h3 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.revenue-total {
    font-size: 1rem;
    font-weight: 700;
    color: var(--success);
}

.card-body {
    padding: 1rem;
}

#revenueChart {
    width: 100%;
    height: 280px;
}

/* Activity List */
.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-content p {
    margin: 0 0 0.25rem;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.activity-content small {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.empty-activity {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Content Header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    min-width: 250px;
}

.search-box i {
    color: var(--text-secondary);
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    color: var(--text-primary);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.25rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--primary-light);
}

/* Table Wrapper */
.table-wrapper {
    background: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.data-table td {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.empty-row {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Action Buttons */
.actions-cell {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-edit, .btn-delete, .btn-featured, .btn-verify, .btn-activate {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-edit {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.btn-edit:hover {
    background: rgba(59, 130, 246, 0.2);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-featured {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.btn-featured.active {
    background: rgba(245, 158, 11, 0.2);
}

.btn-verify {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.btn-activate {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

/* Badges */
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.status-badge.verified { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-badge.pending { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.status-badge.rejected { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.status-badge.active { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.status-badge.draft { background: rgba(100, 116, 139, 0.1); color: #64748b; }

/* Role Badge */
.role-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.role-badge.admin { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.role-badge.business_owner { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.role-badge.user { background: rgba(100, 116, 139, 0.1); color: #64748b; }

/* User Avatar */
.user-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar-sm {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

/* Business Table */
.businesses-table .docs-cell {
    text-align: center;
}

.logo-preview img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.logo-placeholder {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.doc-status {
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.listing-card {
    background: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    transition: all 0.2s;
}

.listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.listing-image {
    width: 120px;
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-info {
    flex: 1;
    padding: 1rem;
}

.listing-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}

.listing-business {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.listing-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.listing-price .current {
    font-weight: 700;
    color: var(--primary);
}

.listing-price .old {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.listing-date {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.listing-actions {
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Blogs Grid */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
}

.blog-card {
    background: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    transition: all 0.2s;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-image {
    width: 100px;
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-info {
    flex: 1;
    padding: 1rem;
}

.blog-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}

.blog-date {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.blog-excerpt {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.blog-actions {
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Notifications List */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.notification-item.unread {
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
}

.notification-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.notification-icon.business { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.notification-icon.verification { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.notification-icon.payment { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.notification-icon.contact { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.notification-content {
    flex: 1;
}

.notification-content p {
    margin: 0 0 0.25rem;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.notification-content small {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-mark {
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: none;
    background: var(--primary-light);
    color: var(--primary);
    cursor: pointer;
    font-size: 0.7rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .charts-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-sidebar-new {
        transform: translateX(-100%);
        width: 280px;
        z-index: 1002;
    }
    .admin-sidebar-new.mobile-open {
        transform: translateX(0);
    }
    .admin-main-new {
        margin-left: 0 !important;
    }
    .admin-sidebar-toggle {
        left: 20px !important;
        z-index: 1003;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .content-header {
        flex-direction: column;
    }
    .search-box {
        width: 100%;
    }
    .listings-grid, .blogs-grid {
        grid-template-columns: 1fr;
    }
    .listing-card, .blog-card {
        flex-direction: column;
    }
    .listing-image, .blog-image {
        width: 100%;
        height: 150px;
    }
    .listing-actions, .blog-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
    .notification-item {
        flex-wrap: wrap;
    }
}
/* Business Admin Grid */
.business-admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.business-admin-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.business-admin-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Card Header */
.business-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.business-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.business-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.business-title {
    flex: 1;
}

.business-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.business-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.business-owner-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.business-owner-info i {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

/* Card Body */
.business-card-body {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.info-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-col {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-col label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-col span {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.package-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.7rem;
}

.business-description {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.business-description p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.business-hours {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
}

.hours-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.document-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary);
    border-radius: 8px;
    font-size: 0.75rem;
}

.document-status i {
    color: var(--success);
}

.document-status.pending i {
    color: var(--warning);
}

.btn-view-doc {
    background: var(--primary-light);
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.7rem;
    color: var(--primary);
    margin-left: auto;
}

/* Card Footer */
.business-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.action-group, .contact-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s;
}

.action-btn.edit { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.action-btn.delete { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.action-btn.activate { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.action-btn.featured { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.action-btn.featured.active { background: rgba(245, 158, 11, 0.2); }
.action-btn.verify { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.action-btn:hover {
    transform: translateY(-1px);
}

.contact-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s;
}

.contact-btn.sms { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.contact-btn.email { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.contact-btn.whatsapp { background: rgba(37, 211, 102, 0.1); color: #25D366; }

/* Expandable Listings Section */
.business-listings-section {
    border-top: 1px solid var(--border);
}

.listings-header {
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: background 0.2s;
}

.listings-header:hover {
    background: var(--bg-primary);
}

.listings-content {
    padding: 1rem 1.25rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.listings-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.listing-mini-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.listing-mini-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.listing-mini-info {
    flex: 1;
}

.listing-mini-info h5 {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}

.listing-mini-info .listing-price {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.listing-mini-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit-sm, .btn-delete-sm {
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.65rem;
}

.btn-edit-sm { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.btn-delete-sm { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.no-listings {
    text-align: center;
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.add-listing-btn {
    width: 100%;
    padding: 0.5rem;
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.add-listing-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Badges */
.badge-success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.badge-featured { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.badge-default { background: rgba(100, 116, 139, 0.1); color: #64748b; }

/* Notifications List */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.notification-item.unread {
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
}

.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-icon.business { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.notification-icon.verification { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.notification-icon.payment { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.notification-icon.contact { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.notification-icon.user { background: rgba(236, 72, 153, 0.1); color: #ec4899; }
.notification-icon.system { background: rgba(100, 116, 139, 0.1); color: #64748b; }

.notification-content {
    flex: 1;
}

.notification-content p {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.notification-meta small {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.status-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 500;
}

.unread-badge {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.read-badge {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.notification-actions button {
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s;
}

.btn-mark {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-view {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.notification-actions button:hover {
    transform: translateY(-1px);
}
/* Package Cards Grid */
.package-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.package-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.package-card-header {
    padding: 1.5rem;
    text-align: center;
    color: white;
}

.package-card-header.basic { background: linear-gradient(135deg, #64748b, #475569); }
.package-card-header.premium { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.package-card-header.elite { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.package-card-header.featured { background: linear-gradient(135deg, #f59e0b, #d97706); }

.package-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.package-card-header h3 {
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
}

.package-price {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.package-duration {
    font-size: 0.8rem;
    opacity: 0.9;
}

.package-card-body {
    padding: 1.25rem;
}

.package-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.package-feature i {
    width: 25px;
    color: var(--primary);
}

.package-features-list {
    margin-top: 1rem;
    padding-top: 0.5rem;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.package-features-list ul {
    margin: 0;
    padding-left: 1.5rem;
}

.package-features-list li {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0.25rem 0;
}

.package-card-footer {
    padding: 1rem 1.25rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}
/* Dashboard Stats */
.stat-stats {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
    font-size: 0.65rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.stat-stats span {
    background: var(--bg-primary);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
}

.no-data-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.no-data-message i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Top Businesses List */
.top-businesses-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.top-business-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--bg-primary);
    border-radius: 10px;
}

.rank {
    width: 28px;
    height: 28px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.business-info {
    flex: 1;
}

.business-info .name {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.business-info .views {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.rating {
    display: flex;
    gap: 2px;
}

.rating i {
    font-size: 0.7rem;
    color: #f59e0b;
}

.btn-refresh {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: var(--text-secondary);
}

.btn-refresh:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Activity Icon Colors */
.activity-icon {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.activity-icon.business { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.activity-icon.user { background: rgba(236, 72, 153, 0.1); color: #ec4899; }
.activity-icon.payment { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.activity-icon.listing { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.activity-icon.verification { background: rgba(16, 185, 129, 0.1); color: #10b981; }

/* Payment Summary Cards */
.payment-summary-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.summary-icon.total { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.summary-icon.completed { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.summary-icon.pending { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.summary-icon.count { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.summary-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.summary-info p {
    font-size: 0.7rem;
    margin: 0;
    color: var(--text-muted);
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.form-select-sm {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Method Badges */
.method-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.method-badge.m-pesa { background: rgba(37, 211, 102, 0.1); color: #25D366; }
.method-badge.bank { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.method-badge.cash { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.method-badge.card { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

/* Status Badges */
.status-badge.pending { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.status-badge.completed { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-badge.failed { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.btn-view {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}
/* Responsive Design for Admin */
@media (max-width: 1200px) {
    .payment-summary-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-main-new {
        padding: 1rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .payment-summary-row {
        grid-template-columns: 1fr;
    }
    .charts-row {
        grid-template-columns: 1fr;
    }
    .content-header {
        flex-direction: column;
    }
    .search-box {
        width: 100%;
    }
    .filter-group {
        width: 100%;
        flex-direction: column;
    }
    .filter-group select {
        width: 100%;
    }
    .actions-cell {
        flex-wrap: wrap;
    }
}

/* Receipt Styles */
.receipt-container {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 16px;
}

.receipt-header {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px dashed var(--border);
    margin-bottom: 1rem;
}

.receipt-header h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary);
}

.receipt-header p {
    margin: 0;
    color: var(--text-muted);
}

.receipt-details {
    margin-bottom: 1rem;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.receipt-row .amount {
    color: var(--success);
    font-size: 1.2rem;
}

.receipt-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 2px dashed var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Print Styles */
@media print {
    .admin-sidebar-new,
    .admin-sidebar-toggle,
    .modal-footer-buttons,
    .btn-close,
    .content-header,
    .admin-page-header {
        display: none !important;
    }
    .admin-main-new {
        margin: 0 !important;
        padding: 0 !important;
    }
    .receipt-container {
        box-shadow: none;
        padding: 0;
    }
}

