.services-management { margin-top: 20px; }

.management-tabs { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 25px; 
    border-bottom: 2px solid #eee; 
}

.management-tabs .tab-btn { 
    background: none; 
    border: none; 
    padding: 12px 24px; 
    cursor: pointer; 
    font-size: 15px; 
    color: #666; 
    border-bottom: 3px solid transparent; 
    transition: all 0.3s; 
}

.management-tabs .tab-btn:hover { color: #00aaff; }
.management-tabs .tab-btn.active { color: #00aaff; border-bottom-color: #00aaff; }
.management-tabs .tab-btn i { margin-right: 8px; }

.management-content { display: none; }
.management-content.active { display: block; }

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

.content-header h3 { margin: 0; font-size: 20px; color: #333; }

.filter-group { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-group label { font-weight: 500; color: #555; }
.filter-group select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 5px; min-width: 200px; }

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 25px; 
}

.service-card { 
    background: white; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
    height: 420px;
}

.service-card:hover { 
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.service-image { 
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.8));
}

.service-info { 
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    color: white;
}

.service-info h4 { 
    margin: 0 0 8px; 
    font-size: 1.3rem; 
    font-weight: 600;
}

.service-category { 
    display: inline-block; 
    padding: 4px 10px; 
    background: rgba(255,255,255,0.3);
    color: white; 
    border-radius: 15px; 
    font-size: 11px; 
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
}

.service-desc { 
    font-size: 0.85rem; 
    opacity: 0.9;
    line-height: 1.4; 
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-price { 
    font-size: 1.4rem; 
    font-weight: 700; 
    color: #00ff88; 
    margin: 8px 0;
}

.service-actions { 
    display: flex; 
    gap: 8px; 
    margin-top: 12px;
}

.btn-icon { 
    background: rgba(255,255,255,0.95); 
    border: none;
    padding: 8px 14px; 
    border-radius: 6px; 
    cursor: pointer; 
    color: #333; 
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 500;
}

.btn-icon:hover { 
    background: #00aaff; 
    color: white; 
    transform: translateY(-2px);
}

.btn-icon.btn-danger:hover { 
    background: #dc3545; 
}

.options-table-container { 
    background: white; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
}

.options-table { 
    width: 100%; 
    border-collapse: collapse; 
}

.options-table thead { background: #f8f9fa; }

.options-table th { 
    padding: 12px 15px; 
    text-align: left; 
    font-weight: 600; 
    color: #333; 
    border-bottom: 2px solid #dee2e6; 
}

.options-table td { 
    padding: 12px 15px; 
    border-bottom: 1px solid #f0f0f0; 
    color: #555; 
}

.options-table tbody tr:hover { background: #f8f9fa; }

.options-table .badge { 
    display: inline-block; 
    padding: 4px 10px; 
    background: #e3f2fd; 
    color: #1976d2; 
    border-radius: 4px; 
    font-size: 12px; 
    font-weight: 500; 
}

.options-table code { 
    background: #f5f5f5; 
    padding: 3px 8px; 
    border-radius: 3px; 
    font-family: monospace; 
    color: #d32f2f; 
}

.loading-state, .error-state { 
    text-align: center; 
    padding: 40px; 
    color: #999; 
}

.error-state { color: #d32f2f; }

.no-data { 
    text-align: center; 
    padding: 60px 20px; 
    color: #999; 
}

.no-data i { 
    font-size: 48px; 
    margin-bottom: 15px; 
    opacity: 0.3; 
}

.form-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
}

.modal-content { 
    background-color: white; 
    border-radius: 10px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.2); 
    max-width: 600px; 
    width: 90%; 
    max-height: 90vh; 
    overflow-y: auto; 
}

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

.modal-header h3 { margin: 0; font-size: 20px; color: #333; }

.modal-header .close { 
    cursor: pointer; 
    font-size: 28px; 
    color: #999; 
    font-weight: 300; 
    line-height: 1; 
}

.modal-header .close:hover { color: #333; }

.modal-body { padding: 25px; }

.form-group { margin-bottom: 20px; }

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 500; 
    color: #333; 
    font-size: 14px; 
}

.form-group input, 
.form-group select, 
.form-group textarea { 
    width: 100%; 
    padding: 10px 12px; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
    font-size: 14px; 
    font-family: inherit; 
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus { 
    outline: none; 
    border-color: #00aaff; 
}

.form-group small { 
    display: block; 
    margin-top: 5px; 
    color: #999; 
    font-size: 12px; 
}

.modal-actions { 
    display: flex; 
    gap: 10px; 
    justify-content: flex-end; 
    margin-top: 25px; 
    padding-top: 20px; 
    border-top: 1px solid #eee; 
}

.btn { 
    padding: 10px 20px; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 14px; 
    font-weight: 500; 
    transition: all 0.3s; 
}

.btn-primary { background: #00aaff; color: white; }
.btn-primary:hover { background: #0088cc; }
.btn-secondary { background: #f5f5f5; color: #666; }
.btn-secondary:hover { background: #e0e0e0; }

.subscriptions-management { margin-top: 20px; }

.subscriptions-table-container { 
    background: white; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
}

.subscriptions-table { 
    width: 100%; 
    border-collapse: collapse; 
}

.subscriptions-table thead { background: #f8f9fa; }

.subscriptions-table th { 
    padding: 12px 15px; 
    text-align: left; 
    font-weight: 600; 
    color: #333; 
    border-bottom: 2px solid #dee2e6; 
}

.subscriptions-table td { 
    padding: 12px 15px; 
    border-bottom: 1px solid #f0f0f0; 
    color: #555; 
}

.subscriptions-table tbody tr:hover { background: #f8f9fa; }

.status-expired { background: #dc3545; color: white; padding: 4px 10px; border-radius: 4px; font-size: 12px; }
.status-cancelled { background: #6c757d; color: white; padding: 4px 10px; border-radius: 4px; font-size: 12px; }

.filter-select { 
    padding: 8px 12px; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
    min-width: 150px; 
}

.plans-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 25px; 
}

.plan-card { 
    background: white; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.plan-card:hover { 
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    border-color: #00aaff;
}

.plan-template {
    background: linear-gradient(135deg, #e6f7fb 0%, #daeffa 100%);
    color: #333;
    border: 2px solid #00aaff;
}

.plan-header { 
    padding: 20px; 
    border-bottom: 2px solid #00aaff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-header h4 { 
    margin: 0; 
    font-size: 1.4rem; 
    font-weight: 600;
    color: #00aaff;
}

.plan-badge { 
    background: linear-gradient(135deg, #00aaff, #0088cc);
    color: white;
    padding: 6px 14px; 
    border-radius: 15px; 
    font-size: 11px; 
    text-transform: uppercase; 
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 170, 255, 0.3);
}

.plan-price { 
    padding: 25px; 
    text-align: center;
    background: white;
    border-radius: 10px;
    margin: 15px;
    box-shadow: 0 2px 10px rgba(0, 170, 255, 0.15);
}

.price-amount { 
    display: block; 
    font-size: 2.5rem; 
    font-weight: 700; 
    margin-bottom: 5px;
    color: #00aaff;
}

.price-duration { 
    display: block; 
    color: #666;
    font-size: 0.9rem;
}

.plan-details { 
    padding: 20px;
}

.plan-details p { 
    margin: 0 0 15px 0; 
    color: #555;
    line-height: 1.5;
}

.plan-info { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
    margin: 15px 0;
}

.plan-info div { 
    background: white;
    padding: 12px; 
    border-radius: 8px; 
    font-size: 0.85rem;
    color: #333;
    border: 1px solid rgba(0, 170, 255, 0.2);
    box-shadow: 0 2px 5px rgba(0, 170, 255, 0.1);
}

.plan-info i { 
    margin-right: 5px; 
    color: #00aaff;
}

.plan-features { margin-top: 20px; }

.plan-features h5 { 
    margin: 0 0 10px 0; 
    font-size: 0.95rem;
    color: #00aaff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.plan-features ul { 
    list-style: none; 
    padding: 0; 
    margin: 0;
}

.plan-features li { 
    padding: 10px; 
    background: white;
    margin-bottom: 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #333;
    border-left: 3px solid #00aaff;
    box-shadow: 0 2px 5px rgba(0, 170, 255, 0.08);
}

.plan-features li:last-child { margin-bottom: 0; }

.plan-features i { 
    margin-right: 8px; 
    color: #28a745;
}

.plan-actions { 
    padding: 20px; 
    text-align: center;
    border-top: 2px solid #00aaff;
}

.plan-actions .btn { 
    width: 100%;
    background: linear-gradient(135deg, #00aaff, #0088cc);
    color: white;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.3);
}

.plan-actions .btn:hover {
    background: linear-gradient(135deg, #0088cc, #006699);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 170, 255, 0.4);
}

/* Activity Table */
.activity-table { 
    width: 100%; 
    border-collapse: collapse; 
    background: white; 
    border-radius: 8px; 
    overflow: hidden;
}

.activity-table thead { background: #f8f9fa; }

.activity-table th { 
    padding: 12px 15px; 
    text-align: left; 
    font-weight: 600; 
    color: #333; 
    border-bottom: 2px solid #dee2e6;
}

.activity-table td { 
    padding: 12px 15px; 
    border-bottom: 1px solid #f0f0f0; 
    color: #555;
}

.activity-table tbody tr:hover { background: #f8f9fa; }

