.preloader-container:after {
    content: "";
    /* Create a pseudo-element */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    /* Semi-transparent white overlay */
    z-index: 1;
    /* Place the overlay behind the preloader */
}

.preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 16px solid #3498db;
    border-top: 16px solid #f1c40f;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
    z-index: 2;
    /* Place the preloader on top of the overlay */
}

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

    100% {
        transform: rotate(360deg);
    }
}


.seller-panel-page header, 
.seller-panel-page .breadcrumbs, 
.seller-panel-page footer {
    display: none!important;
}


/* Dashboard Title */
.dashboard-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

/* Membership Banner */
.membership-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 30px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.membership-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1%, transparent 1%);
    background-size: 50px 50px;
    transform: rotate(30deg);
    pointer-events: none;
}

.membership-info {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.membership-details h3 {
    font-size: 24px;
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #ffffff;
}

.membership-plan-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    margin-top: 10px;
}

.membership-stats {
    display: flex;
    gap: 30px;
    background: rgba(255,255,255,0.1);
    padding: 15px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.membership-stat-item {
    text-align: center;
}

.membership-stat-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 5px;
}

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

.warning-banner {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 10px;
    background: rgba(255,255,255,0.95);
    color: #ff9800;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.critical-banner {
    background: rgba(255,255,255,0.95);
    color: #f44336;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card-modern {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.stat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #4361ee;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-header h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    margin: 0;
    font-weight: 600;
}

.stat-icon {
    font-size: 32px;
    opacity: 0.3;
}

.stat-value-modern {
    font-size: 36px;
    font-weight: 800;
    color: #2d3748;
    margin: 10px 0;
}

.stat-trend {
    font-size: 13px;
    color: #6c757d;
    margin-top: 10px;
}

.trend-up {
    color: #4caf50;
}

.trend-down {
    color: #f44336;
}

/* Progress Bar */
.progress-section {
    margin-top: 15px;
}

.progress-bar-container {
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #4361ee, #3f37c9);
    height: 8px;
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    text-align: right;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-modern {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary-modern {
    background: linear-gradient(135deg, #4361ee, #3f37c9);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.btn-outline-modern {
    background: transparent;
    border: 2px solid #4361ee;
    color: #4361ee;
}

.btn-outline-modern:hover {
    background: #4361ee;
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.chart-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.chart-card h4 {
    margin-bottom: 20px;
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    margin-top: 30px;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    color: #2d3748;
    margin-bottom: 10px;
}

.empty-state p {
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .frontend-dashboard .content {
        padding: 20px;
        margin: 10px;
        border-radius: 20px;
    }
    
    .membership-info {
        flex-direction: column;
        text-align: center;
    }
    
    .membership-stats {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .dashboard-title {
        font-size: 24px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card-modern, .chart-card, .membership-banner {
    animation: fadeInUp 0.5s ease-out;
}
/* Header Styles */
.dashboard-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: #64748b;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.plan-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.plan-card.current-plan {
    border: 2px solid #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.plan-card.premium {
    background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
}

.plan-card.pro {
    background: linear-gradient(135deg, #ffffff 0%, #dbeafe 100%);
}

.current-badge {
    position: absolute;
    top: -12px;
    right: 1.5rem;
    background: #6366f1;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-name {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1e293b;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #64748b;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #6366f1;
}

.price-period {
    font-size: 0.875rem;
    color: #64748b;
}

.plan-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.plan-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #64748b;
    font-size: 0.95rem;
}

.feature-icon {
    color: #10b981;
    flex-shrink: 0;
}

.plan-action {
    margin-top: auto;
}

.btn-select, .btn-current {
    width: 100%;
    padding: 0.875rem;
    border-radius: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-select {
    background: #6366f1;
    color: white;
}

.btn-select:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-current {
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
}

/* Orders Section */
.orders-section {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #64748b;
}

.orders-count {
    text-align: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 1rem;
}

.count-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #6366f1;
    display: block;
}

.count-label {
    font-size: 0.875rem;
    color: #64748b;
}

/* Orders Table */
.orders-table-container {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
}

.orders-table thead th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: #64748b;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.orders-table tbody tr {
    background: #f8fafc;
    border-radius: 0.75rem;
    transition: all 0.2s;
}

.orders-table tbody tr:hover {
    background: #f1f5f9;
    transform: scale(1.01);
}

.orders-table td {
    padding: 1rem;
    color: #1e293b;
    border: none;
}

.order-id {
    font-weight: 600;
    color: #6366f1;
}

.order-amount {
    font-weight: 600;
}

.status-badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.pending {
    background: #fed7aa;
    color: #92400e;
}

.status-badge.failed {
    background: #fee2e2;
    color: #991b1b;
}

.btn-icon {
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.btn-icon:hover {
    background: #e2e8f0;
    transform: scale(1.1);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

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

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    background: #f1f5f9;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.page-link:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
}

.page-link.active {
    background: #6366f1;
    color: white;
}

/* Modal Styles */
.modern-modal .modal-content {
    border-radius: 1.5rem;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-plan-info {
    text-align: center;
    padding: 1rem;
}

.price-alert {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fef3c7;
    border-radius: 0.75rem;
    color: #92400e;
}

.btn-primary-modal, .btn-secondary-modal {
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary-modal {
    background: #6366f1;
    color: white;
}

.btn-primary-modal:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.btn-secondary-modal {
    background: #e2e8f0;
    color: #64748b;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    padding: 3rem;
}

.empty-state-icon {
    font-size: 4rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-main {
        margin-left: 0;
        padding: 1rem;
    }
    
    .plans-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .dashboard-title {
        font-size: 1.75rem;
    }
    
    .plan-card {
        padding: 1.5rem;
    }
    
    .orders-table thead {
        display: none;
    }
    
    .orders-table tbody tr {
        display: block;
        margin-bottom: 1rem;
    }
    
    .orders-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .orders-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}