.payment-history-table {
        overflow-x: auto;
        margin-top: 20px;
    }
    
    .table {
        width: 100%;
        border-collapse: collapse;
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .table th,
    .table td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid #eee;
    }
    
    .table th {
        background: #f8f9fa;
        font-weight: 600;
        color: #333;
    }
    
    .status-badge {
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 500;
        text-transform: uppercase;
    }
    
    .status-completed { background: #d4edda; color: #155724; }
    .status-pending { background: #fff3cd; color: #856404; }
    .status-processing { background: #cce7f0; color: #0c5460; }
    .status-failed { background: #f8d7da; color: #721c24; }
    .status-expired { background: #e2e3e5; color: #383d41; }

    .payment-status-card {
        background: white;
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        margin: 20px 0;
    }
    
    .payment-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }
    
    .payment-status {
        color: white;
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 0.875rem;
        font-weight: 500;
    }
    
    .payment-details {
        margin-bottom: 20px;
    }
    
    .detail-row {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .detail-row:last-child {
        border-bottom: none;
    }
    
    .label {
        font-weight: 500;
        color: #666;
    }
    
    .value {
        color: #333;
    }
    
    .payment-actions {
        text-align: center;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }

    .coupon-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin: 20px 0;
    }
    
    .stat-box {
        background: white;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        text-align: center;
    }
    
    .stat-box h3 {
        margin: 0 0 10px 0;
        color: #666;
    }
    
    .stat-box p {
        font-size: 2em;
        font-weight: bold;
        color: #0073aa;
        margin: 0;
    }
    
    .add-coupon-form {
        background: white;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        margin: 20px 0;
    }
    
    .existing-coupons {
        background: white;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        margin: 20px 0;
    }
    
    .status-active {
        color: #28a745;
        font-weight: bold;
    }
    
    .status-inactive {
        color: #dc3545;
        font-weight: bold;
    }

    .analytics-controls {
        background: white;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        margin: 20px 0;
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .analytics-loading {
        text-align: center;
        padding: 40px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .analytics-dashboard {
        display: grid;
        gap: 20px;
    }
    
    .analytics-card {
        background: white;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .analytics-card h3 {
        margin: 0 0 15px 0;
        color: #333;
        border-bottom: 2px solid #0073aa;
        padding-bottom: 10px;
    }
    
    .metric-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        margin: 20px 0;
    }
    
    .metric-item {
        text-align: center;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .metric-value {
        font-size: 2em;
        font-weight: bold;
        color: #0073aa;
        margin: 5px 0;
    }
    
    .metric-label {
        color: #666;
        font-size: 0.9em;
    }
    
    .chart-container {
        height: 400px;
        margin: 20px 0;
    }
    
    .data-table {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid #eee;
    }
    
    .data-table th {
        background: #f8f9fa;
        font-weight: 600;
    }

    .subscription-management {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .current-subscription,
    .subscription-benefits,
    .payment-history {
        background: white;
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        margin-bottom: 30px;
    }
    
    .subscription-card {
        border: 2px solid #e9ecef;
        border-radius: 12px;
        padding: 25px;
        transition: all 0.3s ease;
    }
    
    .subscription-card.active {
        border-color: #28a745;
        background: linear-gradient(135deg, #f8fff9, #e8f5e8);
    }
    
    .subscription-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .subscription-header h4 {
        margin: 0;
        color: #333;
        font-size: 1.5em;
    }
    
    .status-badge {
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.8em;
        font-weight: 600;
        text-transform: uppercase;
    }
    
    .status-badge.active {
        background: #28a745;
        color: white;
    }
    
    .subscription-details p {
        margin: 10px 0;
        color: #666;
    }
    
    .subscription-actions {
        margin-top: 20px;
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .benefits-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-top: 20px;
    }
    
    .benefit-item {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .benefit-icon {
        font-size: 2em;
        flex-shrink: 0;
    }
    
    .benefit-content h4 {
        margin: 0 0 8px 0;
        color: #333;
    }
    
    .benefit-content p {
        margin: 0;
        color: #666;
        font-size: 0.9em;
    }
    
    .upgrade-prompt {
        text-align: center;
        padding: 40px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 12px;
    }
    
    .upgrade-prompt h3 {
        margin: 0 0 15px 0;
        font-size: 2em;
    }
    
    .upgrade-prompt p {
        margin: 0 0 25px 0;
        font-size: 1.1em;
        opacity: 0.9;
    }
    
    @media (max-width: 768px) {
        .subscription-management {
            padding: 0 15px;
        }
        
        .current-subscription,
        .subscription-benefits,
        .payment-history {
            padding: 20px;
        }
        
        .subscription-actions {
            flex-direction: column;
        }
        
        .benefits-grid {
            grid-template-columns: 1fr;
        }
    }

    body {
                font-family: Arial, sans-serif;
                /* max-width: 600px; */
                margin: 0 auto;
                padding: 20px;
                color: #333;
            }
            .receipt-header {
                text-align: center;
                border-bottom: 2px solid #0073aa;
                padding-bottom: 20px;
                margin-bottom: 30px;
            }
            .receipt-header h1 {
                color: #0073aa;
                margin: 0;
            }
            .receipt-info {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 30px;
                margin-bottom: 30px;
            }
            .info-section h3 {
                color: #0073aa;
                border-bottom: 1px solid #eee;
                padding-bottom: 5px;
                margin-bottom: 15px;
            }
            .info-row {
                display: flex;
                justify-content: space-between;
                margin-bottom: 8px;
            }
            .info-label {
                font-weight: bold;
            }
            .payment-details {
                background: #f8f9fa;
                padding: 20px;
                border-radius: 8px;
                margin-bottom: 30px;
            }
            .total-amount {
                font-size: 1.5em;
                font-weight: bold;
                color: #28a745;
                text-align: center;
                padding: 20px;
                background: #e8f5e9;
                border-radius: 8px;
                margin-bottom: 30px;
            }
            .receipt-footer {
                text-align: center;
                color: #666;
                font-size: 0.9em;
                border-top: 1px solid #eee;
                padding-top: 20px;
            }
            @media print {
                body { margin: 0; padding: 15px; }
                .no-print { display: none; }
            }

            .payment-history-table {
        overflow-x: auto;
    }
    
    .payment-history-table table {
        min-width: 600px;
    }
    
    .payment-status {
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 0.8em;
        font-weight: 600;
        text-transform: uppercase;
    }
    
    .status-completed {
        background: #d4edda;
        color: #155724;
    }
    
    .status-pending {
        background: #fff3cd;
        color: #856404;
    }
    
    .status-failed {
        background: #f8d7da;
        color: #721c24;
    }
    
    .status-expired {
        background: #e2e3e5;
        color: #383d41;
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 0.8em;
        border-radius: 4px;
        text-decoration: none;
        display: inline-block;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .btn-primary {
        background: #007cba;
        color: white;
    }
    
    .btn-primary:hover {
        background: #005a87;
    }
    
    .btn-secondary {
        background: #6c757d;
        color: white;
    }
    
    .btn-secondary:hover {
        background: #545b62;
    }
    
    .btn-warning {
        background: #ffc107;
        color: #212529;
    }
    
    .btn-warning:hover {
        background: #e0a800;
    }
